From: Richard Biener Date: Wed, 28 Oct 2015 15:28:04 +0000 (+0000) Subject: gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs in simplifying VEC_COND_EXPR... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe4ed7b1e8ee8b6df26f92308ebce623258c4cc0;p=gcc.git gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs in simplifying VEC_COND_EXPR conditions. 2015-10-28 Richard Biener * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 273dca71e25..cf33d453ef7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-28 Richard Biener + + * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs + in simplifying VEC_COND_EXPR conditions. + 2015-10-28 Tom de Vries * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate 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; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b28a986107d..5b0c237e320 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-10-28 Richard Biener + + * gcc.dg/tree-ssa/operand-equal-2.c: Adjust. + 2015-10-28 Tom de Vries * gcc.dg/tree-ssa/pta-callused.c: Update to scan for CALLUSED(id). diff --git a/gcc/testsuite/gcc.dg/tree-ssa/operand-equal-2.c b/gcc/testsuite/gcc.dg/tree-ssa/operand-equal-2.c index 46fa323b4d7..1f12b9c0073 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/operand-equal-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/operand-equal-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-forwprop1" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ typedef char __attribute__ ((vector_size (4))) v4qi; @@ -9,4 +9,4 @@ void ret(char a) v4qi c={a,a,a,a},d={a,a,a,a}; v = (c!=d); } -/* { dg-final { scan-tree-dump "v = . 0, 0, 0, 0 ." "forwprop2"} } */ +/* { dg-final { scan-tree-dump "v = . 0, 0, 0, 0 ." "fre1"} } */