summaryrefslogtreecommitdiff
path: root/gcc/gimple-match-head.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-10-28 15:28:04 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-10-28 15:28:04 +0000
commitfe4ed7b1e8ee8b6df26f92308ebce623258c4cc0 (patch)
tree5e79c3ed74f786f7e55a341ccba2dc4d2943cd36 /gcc/gimple-match-head.c
parent054e08894a07aee745476772e87b5138b5b73ac1 (diff)
gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs in simplifying VEC_COND_EXPR conditions.
2015-10-28 Richard Biener <rguenther@suse.de> * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs in simplifying VEC_COND_EXPR conditions. * gcc.dg/tree-ssa/operand-equal-2.c: Adjust. From-SVN: r229492
Diffstat (limited to 'gcc/gimple-match-head.c')
-rw-r--r--gcc/gimple-match-head.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple-match-head.c b/gcc/gimple-match-head.c
index 75f478cc6f5..6c26f79e7d6 100644
--- a/gcc/gimple-match-head.c
+++ b/gcc/gimple-match-head.c
@@ -708,7 +708,8 @@ gimple_simplify (gimple *stmt,
rhs1 = build2 (rcode2, TREE_TYPE (rhs1),
ops2[0], ops2[1]);
else if (rcode2 == SSA_NAME
- || rcode2 == INTEGER_CST)
+ || rcode2 == INTEGER_CST
+ || rcode2 == VECTOR_CST)
rhs1 = ops2[0];
else
valueized = false;