Commit 912b79e7 by Jan Hubicka Committed by Jan Hubicka

* cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.

From-SVN: r64103
parent c19de7aa
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
Mon Mar 10 15:30:36 CET 2003 Jan Hubicka <jh@suse.cz> Mon Mar 10 15:30:36 CET 2003 Jan Hubicka <jh@suse.cz>
* cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
* cfgcleanup.c (merge_blocks): Return where to iterate next. * cfgcleanup.c (merge_blocks): Return where to iterate next.
(try_optimize_cfg): Use return value of merge_blocks (try_optimize_cfg): Use return value of merge_blocks
......
...@@ -861,6 +861,8 @@ merge_blocks (e, b, c, mode) ...@@ -861,6 +861,8 @@ merge_blocks (e, b, c, mode)
b_has_incoming_fallthru = (tmp_edge != NULL); b_has_incoming_fallthru = (tmp_edge != NULL);
b_fallthru_edge = tmp_edge; b_fallthru_edge = tmp_edge;
next = b->prev_bb; next = b->prev_bb;
if (next == c)
next = next->prev_bb;
/* Otherwise, we're going to try to move C after B. If C does /* Otherwise, we're going to try to move C after B. If C does
not have an outgoing fallthru, then it can be moved not have an outgoing fallthru, then it can be moved
......
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