* tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
vectype doesn't have VECTOR_MODE_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181891
138bc75d-0d04-0410-961f-
82ee72b054a4
2011-12-01 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/51356
+ * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
+ vectype doesn't have VECTOR_MODE_P.
+
PR debug/50317
* tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
as unnecessary a store to a variable with gimple reg type.
stmt_vec_info pattern_stmt_info;
vectype = STMT_VINFO_VECTYPE (stmt_vinfo);
gcc_assert (vectype != NULL_TREE);
+ if (!VECTOR_MODE_P (TYPE_MODE (vectype)))
+ return NULL;
if (!check_bool_pattern (var, loop_vinfo))
return NULL;