Commit Message

Hello,
sel_merge_blocks calls sel_remove_empty_bb which behavior is customized via
merge_up_p parameter. However, it is always true now, which allows
simplifying the latter function to a single assert. The former function is
also made static. Finally, sel_remove_bb uses basic block index after the
block itself has been removed, it is better to avoid this. Bootstrapped
with the other patches for 43603, ok for trunk?
2010-10-04 Andrey Belevantsev <abel@ispras.ru>
* sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
(tidy_control_flow): Tidy vertical space.
(sel_remove_bb): New variable idx. Use it to remember the basic
block index before deleting the block.
(sel_remove_empty_bb): Remove dead code, simplify and insert to ...
(sel_merge_blocks): ... here.
* sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.