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

From-SVN: r64103
This commit is contained in:
Jan Hubicka 2003-03-10 19:32:17 +01:00 committed by Jan Hubicka
parent c19de7aa68
commit 912b79e7e9
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,8 @@
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.
(try_optimize_cfg): Use return value of merge_blocks

View File

@ -861,6 +861,8 @@ merge_blocks (e, b, c, mode)
b_has_incoming_fallthru = (tmp_edge != NULL);
b_fallthru_edge = tmp_edge;
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
not have an outgoing fallthru, then it can be moved