summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-slp.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-14 12:22:13 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-14 12:22:13 +0000
commitb036fcd8124d1d2a1ee504359711b883a9a994a3 (patch)
treeb0fa78dca1bcc6286458dff5972922cd0cf8557e /gcc/tree-vect-slp.c
parent0d28a99e76e73f2c1fbcdc8ca4ed114cad86f0b1 (diff)
downloadgcc-b036fcd8124d1d2a1ee504359711b883a9a994a3.tar.gz
PR tree-optimization/44507
* tree-vect-loop.c (get_initial_def_for_reduction): Use -1 to build initial vector for BIT_AND_EXPR. * tree-vect-slp.c (vect_get_constant_vectors): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160727 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r--gcc/tree-vect-slp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index 41c01b97709..5f753a26935 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -1662,7 +1662,6 @@ vect_get_constant_vectors (slp_tree slp_node, VEC(tree,heap) **vec_oprnds,
break;
case MULT_EXPR:
- case BIT_AND_EXPR:
if (SCALAR_FLOAT_TYPE_P (TREE_TYPE (op)))
neutral_op = build_real (TREE_TYPE (op), dconst1);
else
@@ -1670,6 +1669,10 @@ vect_get_constant_vectors (slp_tree slp_node, VEC(tree,heap) **vec_oprnds,
break;
+ case BIT_AND_EXPR:
+ neutral_op = build_int_cst (TREE_TYPE (op), -1);
+ break;
+
default:
neutral_op = NULL;
}