[PATCH] Fix PR92119
Richard Biener
rguenther@suse.de
Wed Oct 16 10:11:00 GMT 2019
Committed as obvious.
Richard.
2019-10-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/92119
* tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
against missing bswap lhs.
Index: gcc/tree-vect-patterns.c
===================================================================
--- gcc/tree-vect-patterns.c (revision 277053)
+++ gcc/tree-vect-patterns.c (working copy)
@@ -2199,7 +2199,8 @@ vect_recog_rotate_pattern (stmt_vec_info
lhs = gimple_call_lhs (last_stmt);
oprnd0 = gimple_call_arg (last_stmt, 0);
type = TREE_TYPE (oprnd0);
- if (TYPE_PRECISION (TREE_TYPE (lhs)) != 16
+ if (!lhs
+ || TYPE_PRECISION (TREE_TYPE (lhs)) != 16
|| TYPE_PRECISION (type) <= 16
|| TREE_CODE (oprnd0) != SSA_NAME
|| BITS_PER_UNIT != 8
More information about the Gcc-patches
mailing list