]> gcc.gnu.org Git - gcc.git/commitdiff
combine.c (try_combine): When swapping i2 and i3...
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 9 Sep 2004 21:57:50 +0000 (21:57 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 9 Sep 2004 21:57:50 +0000 (21:57 +0000)
* combine.c (try_combine): When swapping i2 and i3, newi2pat may be
a PARALLEL instead of a SET due to added clobbers.

From-SVN: r87255

gcc/ChangeLog
gcc/combine.c

index 34f6e6abc134a5ffcb89aeb17d62796b26fd0196..0d27f66352a76a8f898a836ab3f5587b68e50b21 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
+       a PARALLEL instead of a SET due to added clobbers.
+
 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * reload.c (find_reloads_address): Pass correct operand to 
index 6f1ce6c27599358a970dc66a53979ba57184e9f6..24ebbc97147db840d82b71b3d20b00c527f8dcda 100644 (file)
@@ -2615,7 +2615,13 @@ try_combine (rtx i3, rtx i2, rtx i1, int *new_direct_jump_p)
         The simplest way to remove the link is to point it at I1,
         which we know will be a NOTE.  */
 
-      ni2dest = SET_DEST (newi2pat);
+      /* newi2pat is usually a SET here; however, recog_for_combine might
+        have added some clobbers.  */
+      if (GET_CODE (newi2pat) == PARALLEL)
+       ni2dest = SET_DEST (XVECEXP (newi2pat, 0, 0));
+      else
+       ni2dest = SET_DEST (newi2pat);
+
       for (insn = NEXT_INSN (i3);
           insn && (this_basic_block->next_bb == EXIT_BLOCK_PTR
                    || insn != BB_HEAD (this_basic_block->next_bb));
This page took 0.089028 seconds and 5 git commands to generate.