cfghooks.c (split_block): Fix the information about loop latch.

* cfghooks.c (split_block): Fix the information about loop latch.

From-SVN: r126936
This commit is contained in:
Zdenek Dvorak 2007-07-26 01:19:56 +02:00 committed by Zdenek Dvorak
parent af0b10e546
commit dbdc7f9732
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
* cfghooks.c (split_block): Fix the information about loop latch.
2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
* cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.

View File

@ -432,7 +432,11 @@ split_block (basic_block bb, void *i)
}
if (current_loops != NULL)
add_bb_to_loop (new_bb, bb->loop_father);
{
add_bb_to_loop (new_bb, bb->loop_father);
if (bb->loop_father->latch == bb)
bb->loop_father->latch = new_bb;
}
return make_single_succ_edge (bb, new_bb, EDGE_FALLTHRU);
}