summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivcanon.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-10 12:20:36 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-10 12:20:36 +0000
commitfca2aa676599d1c16b1e5a95fb8bac7bef0232af (patch)
tree6d5a0374956e898ec63d7024bc819ef828c737b8 /gcc/tree-ssa-loop-ivcanon.c
parent432dd330807c633428562eb7d66ede067fd87262 (diff)
downloadgcc-fca2aa676599d1c16b1e5a95fb8bac7bef0232af.tar.gz
2013-05-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/57214 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do not propagate from SSA names that occur in abnormal PHI nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-ivcanon.c')
-rw-r--r--gcc/tree-ssa-loop-ivcanon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c
index c57e4f6a30d..b5751cb7f7f 100644
--- a/gcc/tree-ssa-loop-ivcanon.c
+++ b/gcc/tree-ssa-loop-ivcanon.c
@@ -1085,8 +1085,9 @@ propagate_constants_for_unrolling (basic_block bb)
tree lhs;
if (is_gimple_assign (stmt)
+ && gimple_assign_rhs_code (stmt) == INTEGER_CST
&& (lhs = gimple_assign_lhs (stmt), TREE_CODE (lhs) == SSA_NAME)
- && gimple_assign_rhs_code (stmt) == INTEGER_CST)
+ && !SSA_NAME_OCCURS_IN_ABNORMAL_PHI (lhs))
{
propagate_into_all_uses (lhs, gimple_assign_rhs1 (stmt));
gsi_remove (&gsi, true);