]> gcc.gnu.org Git - gcc.git/commitdiff
ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before the sequence we...
authorRichard Henderson <rth@cygnus.com>
Tue, 2 May 2000 06:35:22 +0000 (23:35 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 2 May 2000 06:35:22 +0000 (23:35 -0700)
        * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
        the sequence we're moving, not to merge_bb->head.

From-SVN: r33605

gcc/ChangeLog
gcc/ifcvt.c

index 0c27203bbae2f8f687dba5a3556f62378197ddf8..b56fa627b1bf33d1dd943bb2344297902329f75d 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-01  Richard Henderson  <rth@cygnus.com>
+
+       * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
+       the sequence we're moving, not to merge_bb->head.
+
 2000-05-01  Richard Henderson  <rth@cygnus.com>
 
        * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
index d571a42a9c14c541cb9ced65470a3e4abc7654e3..c1fc951a059e059da73e1f967ac4f7cacad3c3d0 100644 (file)
@@ -1935,10 +1935,11 @@ dead_or_predicable (test_bb, merge_bb, other_bb, new_dest, reversep)
     }
 
   /* Move the insns out of MERGE_BB to before the branch.  */
-  if (end == merge_bb->end)
-    merge_bb->end = merge_bb->head;
   if (head != NULL)
     {
+      if (end == merge_bb->end)
+       merge_bb->end = PREV_INSN (head);
+
       head = squeeze_notes (head, end);
       if (GET_CODE (end) == NOTE
          && (NOTE_LINE_NUMBER (end) == NOTE_INSN_BLOCK_END
This page took 0.086021 seconds and 5 git commands to generate.