* loop.c (prescan_loop): Handle PARALLEL.
authorGraham Stott <grahams@redhat.com>
Wed, 27 Feb 2002 15:03:05 +0000 (15:03 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Wed, 27 Feb 2002 15:03:05 +0000 (15:03 +0000)
From-SVN: r50101

gcc/ChangeLog
gcc/loop.c

index 062716db49250ec96bae11d0c9c73f5893fe3543..acc8072b9c475d6c1e7008484f5bbf7f856f3e34 100644 (file)
@@ -1,5 +1,7 @@
 2002-02-27  Graham Stott  <grahams@redhat.com>
 
+       * loop.c (prescan_loop): Handle PARALLEL.
+
        * unroll.c (loop_iterations): Return 0 if the add_val for
        a BIV is REG.
 
index 2bd19445ae0b0c4e3eba7358c3a1515c318f7e99..506984beaaf88e368510a4297c1fea88d4f8f542 100644 (file)
@@ -2504,16 +2504,17 @@ prescan_loop (loop)
 
              if (set)
                {
+                 rtx src = SET_SRC (set);
                  rtx label1, label2;
 
-                 if (GET_CODE (SET_SRC (set)) == IF_THEN_ELSE)
+                 if (GET_CODE (src) == IF_THEN_ELSE)
                    {
-                     label1 = XEXP (SET_SRC (set), 1);
-                     label2 = XEXP (SET_SRC (set), 2);
+                     label1 = XEXP (src, 1);
+                     label2 = XEXP (src, 2);
                    }
                  else
                    {
-                     label1 = SET_SRC (PATTERN (insn));
+                     label1 = src;
                      label2 = NULL_RTX;
                    }