Commit 2afa8dce by Daniel Berlin Committed by Daniel Berlin

cfgrtl.c (purge_dead_edges): Don't remove fake edges.

2005-05-18  Daniel Berlin  <dberlin@dberlin.org>

	* cfgrtl.c (purge_dead_edges): Don't remove fake edges.

From-SVN: r99897
parent 23e66a36
2005-05-18 Daniel Berlin <dberlin@dberlin.org>
* cfgrtl.c (purge_dead_edges): Don't remove fake edges.
2005-05-18 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/21407
......
......@@ -2428,9 +2428,12 @@ purge_dead_edges (basic_block bb)
if (!found)
return purged;
/* Remove all but the fake and fallthru edges. The fake edge may be
the only successor for this block in the case of noreturn
calls. */
for (ei = ei_start (bb->succs); (e = ei_safe_edge (ei)); )
{
if (!(e->flags & EDGE_FALLTHRU))
if (!(e->flags & (EDGE_FALLTHRU | EDGE_FAKE)))
{
bb->flags |= BB_DIRTY;
remove_edge (e);
......
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