Commit 3ed961a0 by Zdenek Dvorak Committed by Zdenek Dvorak

* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.

From-SVN: r72207
parent 1b288fec
2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
2003-10-07 Jason Merrill <jason@redhat.com>
PR c++/12519
......
......@@ -310,18 +310,22 @@ fix_irreducible_loops (basic_block from)
}
for (i = 0; i < n_edges; i++)
if (e->flags & EDGE_IRREDUCIBLE_LOOP)
{
if (!flow_bb_inside_loop_p (from->loop_father, e->dest))
continue;
{
e = edges[i];
e->flags &= ~EDGE_IRREDUCIBLE_LOOP;
if (TEST_BIT (on_stack, e->dest->index))
continue;
if (e->flags & EDGE_IRREDUCIBLE_LOOP)
{
if (!flow_bb_inside_loop_p (from->loop_father, e->dest))
continue;
SET_BIT (on_stack, e->dest->index);
stack[stack_top++] = e->dest;
}
e->flags &= ~EDGE_IRREDUCIBLE_LOOP;
if (TEST_BIT (on_stack, e->dest->index))
continue;
SET_BIT (on_stack, e->dest->index);
stack[stack_top++] = e->dest;
}
}
free (edges);
}
......
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