summaryrefslogtreecommitdiff
path: root/gcc/ssa-dce.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-28 17:18:36 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-28 17:18:36 +0000
commitf2b84b8e6c572eaf41d7a8af992a09be98450bee (patch)
treeb3d1b4c0d66fecfa00c9ba8265a0a7e143b64708 /gcc/ssa-dce.c
parent23ab4af6d8fc2f7a9791f36c3372c8abeb6a9869 (diff)
downloadgcc-f2b84b8e6c572eaf41d7a8af992a09be98450bee.tar.gz
* ssa-dce.c (eliminate_dead_code): Remove fake edges from the
CFG after dead code elimination is complete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ssa-dce.c')
-rw-r--r--gcc/ssa-dce.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ssa-dce.c b/gcc/ssa-dce.c
index ca0d998070b..1629803b8e8 100644
--- a/gcc/ssa-dce.c
+++ b/gcc/ssa-dce.c
@@ -39,7 +39,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
out-of-date.
Edges from some infinite loops to the exit block can be added to
- the control-flow graph.
+ the control-flow graph, but will be removed after this pass is
+ complete.
It Does Not Perform:
We decided to not simultaneously perform jump optimization and dead
@@ -606,6 +607,9 @@ eliminate_dead_code ()
delete_insn_bb (insn);
});
+ /* Remove fake edges from the CFG. */
+ remove_fake_edges ();
+
/* Release allocated memory. */
for (insn = get_insns (); insn != NULL_RTX; insn = NEXT_INSN (insn))
RESURRECT_INSN (insn);