flow.c (split_block): Fix update of registers live at end of split block.
authorMichael Hayes <mhayes@cygnus.com>
Mon, 11 Sep 2000 23:59:41 +0000 (23:59 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Mon, 11 Sep 2000 23:59:41 +0000 (23:59 +0000)
* flow.c (split_block): Fix update of registers live at
end of split block.

From-SVN: r36343

gcc/ChangeLog
gcc/flow.c

index 7643df0..850881f 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-13  Michael Hayes  <mhayes@cygnus.com>
+
+       * flow.c (split_block): Fix update of registers live at
+       end of split block.
+
 Tue Sep 12 01:51:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
 
        * i386.md (add?i_3, add?i_5): New.
index c2ae965..12005d3 100644 (file)
@@ -1438,9 +1438,6 @@ split_block (bb, insn)
   rtx bb_note;
   int i, j;
 
-  if (BLOCK_FOR_INSN (insn) != bb)
-    abort ();
-
   /* There is no point splitting the block after its end.  */
   if (bb->end == insn)
     return 0;
@@ -1510,7 +1507,7 @@ split_block (bb, insn)
         propagate_block to determine which registers are live.  */
       COPY_REG_SET (new_bb->global_live_at_start, bb->global_live_at_end);
       propagate_block (new_bb, new_bb->global_live_at_start, NULL, 0);
-      COPY_REG_SET (new_bb->global_live_at_end, 
+      COPY_REG_SET (bb->global_live_at_end, 
                    new_bb->global_live_at_start);
     }