]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
loop.c (check_dbra_loop): Use single_set to compute jump_label.
authorGeoffrey Keating <geoffk@redhat.com>
Tue, 31 Jul 2001 19:19:21 +0000 (19:19 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 31 Jul 2001 19:19:21 +0000 (19:19 +0000)
* loop.c (check_dbra_loop): Use single_set to compute
jump_label.

From-SVN: r44517

gcc/ChangeLog
gcc/loop.c

index 1c009f3bd39b4d974307dc67b6e556449e4bad01..b10257399c8dead59ec27cb619706b0093d2a69b 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
+
+       * loop.c (check_dbra_loop): Use single_set to compute
+       jump_label.
+
 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
 
        PowerPC reorg and support for powerpc64-*-linux*.
index 53e807374679c006851155e28453c54323cf3006..998832ca8d2e594c8b27eee5cb8198753a4e64e5 100644 (file)
@@ -7559,9 +7559,11 @@ check_dbra_loop (loop, insn_count)
 
              /* Save some info needed to produce the new insns.  */
              reg = bl->biv->dest_reg;
-             jump_label = XEXP (SET_SRC (PATTERN (PREV_INSN (loop_end))), 1);
+             jump_label = XEXP (SET_SRC (single_set (PREV_INSN (loop_end))), 
+                                1);
              if (jump_label == pc_rtx)
-               jump_label = XEXP (SET_SRC (PATTERN (PREV_INSN (loop_end))), 2);
+               jump_label = XEXP (SET_SRC (single_set (PREV_INSN (loop_end))),
+                                  2);
              new_add_val = GEN_INT (-INTVAL (bl->biv->add_val));
 
              /* Set start_value; if this is not a CONST_INT, we need