summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-07 21:56:18 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-07 21:56:18 +0000
commit5b4ada2a11ab19842d77296fc4b75971ddb07434 (patch)
treea02016d5a52b8fb18cc01274f221a76ba860a673 /gcc/tree-ssa-dom.c
parent0e526381351bdc1a865fe56435b07ec1bb87c38c (diff)
downloadgcc-5b4ada2a11ab19842d77296fc4b75971ddb07434.tar.gz
Re: [PATCH] Improve DOM's optimization of control statements
* tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here. * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP unnecessarily. @@ -1848,12 +1848,6 @@ optimize_stmt (basic_block bb, gimple_stmt_iterator si, git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228585 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 941087d56de..38cceff2c84 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -1848,12 +1848,6 @@ optimize_stmt (basic_block bb, gimple_stmt_iterator si,
FOR_EACH_EDGE (e, ei, bb->succs)
remove_jump_threads_including (e);
- /* If BB is in a loop, then removing an outgoing edge from BB
- may cause BB to move outside the loop, changes in the
- loop exit edges, etc. So note that loops need fixing. */
- if (bb_loop_depth (bb) > 0)
- loops_state_set (LOOPS_NEED_FIXUP);
-
/* Now clean up the control statement at the end of
BB and remove unexecutable edges. */
remove_ctrl_stmt_and_useless_edges (bb, taken_edge->dest);