aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-slp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2017-02-06 20:15:36 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-02-06 20:15:36 +0100
commit2568d8a1f6d3912e53c457a1ea080050a834cf32 (patch)
tree5df5458d496ad1f8120100b5ff671033e10219d5 /gcc/tree-vect-slp.c
parentaae936b9a3914cf4b5d532644fbdcb1bf70f8099 (diff)
downloadgcc-2568d8a1f6d3912e53c457a1ea080050a834cf32.zip
gcc-2568d8a1f6d3912e53c457a1ea080050a834cf32.tar.gz
gcc-2568d8a1f6d3912e53c457a1ea080050a834cf32.tar.bz2
re PR tree-optimization/79284 (ICE on valid code at -O3 on x86_64-linux-gnu: verify_gimple failed)
PR tree-optimization/79284 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define. * tree-vect-stmts.c (vect_get_vec_def_for_operand, vectorizable_mask_load_store, vectorizable_operation, vect_is_simple_cond, get_same_sized_vectype): Use it instead of comparing TREE_CODE of a type against BOOLEAN_TYPE. * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1, vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise. * tree-vect-slp.c (vect_get_constant_vectors): Likewise. * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise. Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after is_gimple_assign (stmt). Replace another such test with is_gimple_assign (stmt). testsuite/ * gcc.c-torture/compile/pr79284.c: New test. From-SVN: r245214
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r--gcc/tree-vect-slp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index f192c7d..46d1ad6 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -2949,7 +2949,7 @@ vect_get_constant_vectors (tree op, slp_tree slp_node,
gimple_seq ctor_seq = NULL;
/* Check if vector type is a boolean vector. */
- if (TREE_CODE (TREE_TYPE (op)) == BOOLEAN_TYPE
+ if (VECT_SCALAR_BOOLEAN_TYPE_P (TREE_TYPE (op))
&& vect_mask_constant_operand_p (stmt, op_num))
vector_type
= build_same_sized_truth_vector_type (STMT_VINFO_VECTYPE (stmt_vinfo));