]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
loop.c (check_dbra_loop): Use condjump_label to compute jump_label.
authorGeoffrey Keating <geoffk@redhat.com>
Mon, 13 Aug 2001 06:35:21 +0000 (06:35 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 13 Aug 2001 06:35:21 +0000 (06:35 +0000)
* loop.c (check_dbra_loop): Use condjump_label to compute
jump_label.

From-SVN: r44841

gcc/ChangeLog
gcc/loop.c

index 52862e71efad5c6ab8b9fe71541a376efa91be8e..7b106c9c406b5537e477c4623d8a825025f1047f 100644 (file)
@@ -1,5 +1,8 @@
 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
 
+       * loop.c (check_dbra_loop): Use condjump_label to compute
+       jump_label.
+
        * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
        to better document the files they're in.
 
index f9a17af4cd424a6c8bdf628c6d53476ee2f412ee..5e5fa13277406e5f22975b520f558b61016b41d0 100644 (file)
@@ -7561,11 +7561,7 @@ 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 (single_set (PREV_INSN (loop_end))), 
-                                1);
-             if (jump_label == pc_rtx)
-               jump_label = XEXP (SET_SRC (single_set (PREV_INSN (loop_end))),
-                                  2);
+             jump_label = condjump_label (PREV_INSN (loop_end));
              new_add_val = GEN_INT (-INTVAL (bl->biv->add_val));
 
              /* Set start_value; if this is not a CONST_INT, we need