Commit d72c3ec3 by Jeffrey A Law Committed by Jeff Law

ssa-dce.c (eliminate_dead_code): Remove fake edges from the CFG after dead code…

ssa-dce.c (eliminate_dead_code): Remove fake edges from the CFG after dead code elimination is complete.

        * ssa-dce.c (eliminate_dead_code): Remove fake edges from the
        CFG after dead code elimination is complete.

From-SVN: r43641
parent f4b20cd9
Thu Jun 28 11:19:42 2001 Jeffrey A Law (law@cygnus.com)
* ssa-dce.c (eliminate_dead_code): Remove fake edges from the
CFG after dead code elimination is complete.
2001-06-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2001-06-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* gthr-posix.h [LIBOBJC]: Add weak definitions of * gthr-posix.h [LIBOBJC]: Add weak definitions of
......
...@@ -39,7 +39,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -39,7 +39,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
out-of-date. out-of-date.
Edges from some infinite loops to the exit block can be added to 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: It Does Not Perform:
We decided to not simultaneously perform jump optimization and dead We decided to not simultaneously perform jump optimization and dead
...@@ -606,6 +607,9 @@ eliminate_dead_code () ...@@ -606,6 +607,9 @@ eliminate_dead_code ()
delete_insn_bb (insn); delete_insn_bb (insn);
}); });
/* Remove fake edges from the CFG. */
remove_fake_edges ();
/* Release allocated memory. */ /* Release allocated memory. */
for (insn = get_insns (); insn != NULL_RTX; insn = NEXT_INSN (insn)) for (insn = get_insns (); insn != NULL_RTX; insn = NEXT_INSN (insn))
RESURRECT_INSN (insn); RESURRECT_INSN (insn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment