aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ifcombine.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-09-30 09:24:02 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-09-30 09:24:02 +0000
commit6ea2f74cf9dbee7a3e41d4c2bd3757a2ea303b8e (patch)
treed3500a983497c0bd0167a8f97529626c0c3a2ed2 /gcc/tree-ssa-ifcombine.c
parentae15100c9197195f26541c199aa4f6c75d36eb13 (diff)
downloadgcc-6ea2f74cf9dbee7a3e41d4c2bd3757a2ea303b8e.zip
gcc-6ea2f74cf9dbee7a3e41d4c2bd3757a2ea303b8e.tar.gz
gcc-6ea2f74cf9dbee7a3e41d4c2bd3757a2ea303b8e.tar.bz2
re PR tree-optimization/67690 (wrong code with -O2 on x86_64/Linux)
PR tree-optimization/67690 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call reset_flow_sensitive_info_in_bb. * tree-ssa-tail-merge.c (replace_block_by): Likewise. * tree-ssanames.c: Include "gimple-iterator.h". (reset_flow_sensitive_info_in_bb): New function. * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare. * gcc.dg/torture/pr67690.c: New test. From-SVN: r228284
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
-rw-r--r--gcc/tree-ssa-ifcombine.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/tree-ssa-ifcombine.c b/gcc/tree-ssa-ifcombine.c
index 9f04174..66be430 100644
--- a/gcc/tree-ssa-ifcombine.c
+++ b/gcc/tree-ssa-ifcombine.c
@@ -769,16 +769,7 @@ pass_tree_ifcombine::execute (function *fun)
{
/* Clear range info from all stmts in BB which is now executed
conditional on a always true/false condition. */
- for (gimple_stmt_iterator gsi = gsi_start_bb (bb);
- !gsi_end_p (gsi); gsi_next (&gsi))
- {
- gimple *stmt = gsi_stmt (gsi);
- ssa_op_iter i;
- tree op;
- FOR_EACH_SSA_TREE_OPERAND (op, stmt, i, SSA_OP_DEF)
- reset_flow_sensitive_info (op);
- }
-
+ reset_flow_sensitive_info_in_bb (bb);
cfg_changed |= true;
}
}