diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/recog.c | 21 |
2 files changed, 19 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8372b762fcf..2315a03cc60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-02-15 Richard Henderson <rth@redhat.com> + + * recog.c (split_all_insns): Include new blocks in life update; + do a global life update. + 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net> * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a. diff --git a/gcc/recog.c b/gcc/recog.c index 34eaeb32732..bfa988b4b16 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -2840,12 +2840,12 @@ split_all_insns (upd_life) int upd_life; { sbitmap blocks; - int changed; + bool changed; basic_block bb; blocks = sbitmap_alloc (last_basic_block); sbitmap_zero (blocks); - changed = 0; + changed = false; FOR_EACH_BB_REVERSE (bb) { @@ -2870,7 +2870,7 @@ split_all_insns (upd_life) while (GET_CODE (last) == BARRIER) last = PREV_INSN (last); SET_BIT (blocks, bb->index); - changed = 1; + changed = true; insn = last; } } @@ -2878,14 +2878,21 @@ split_all_insns (upd_life) if (changed) { + int old_last_basic_block = last_basic_block; + find_many_sub_basic_blocks (blocks); + + while (old_last_basic_block < last_basic_block) + { + SET_BIT (blocks, old_last_basic_block); + old_last_basic_block++; + } } if (changed && upd_life) - { - count_or_remove_death_notes (blocks, 1); - update_life_info (blocks, UPDATE_LIFE_LOCAL, PROP_DEATH_NOTES); - } + update_life_info (blocks, UPDATE_LIFE_GLOBAL_RM_NOTES, + PROP_DEATH_NOTES | PROP_REG_INFO); + #ifdef ENABLE_CHECKING verify_flow_info (); #endif |