recog.c (split_all_insns): Include new blocks in life update; do a global life update.
authorRichard Henderson <rth@redhat.com>
Sat, 15 Feb 2003 21:01:48 +0000 (13:01 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 15 Feb 2003 21:01:48 +0000 (13:01 -0800)
        * recog.c (split_all_insns): Include new blocks in life update;
        do a global life update.

From-SVN: r62941

gcc/ChangeLog
gcc/recog.c

index 8372b762fcf9721ee1c694be729ce5a5178a7e4a..2315a03cc60dd13dbec4b81b5f0ecf15e7940a25 100644 (file)
@@ -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.
index 34eaeb3273205a608cd7e3cbf12178f7a79ba1af..bfa988b4b167c77a4323e47a69b53b89b3baf08f 100644 (file)
@@ -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