OSDN Git Service

* loop.c (check_dbra_loop): Use condjump_label to compute
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Aug 2001 06:35:21 +0000 (06:35 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Aug 2001 06:35:21 +0000 (06:35 +0000)
jump_label.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44841 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop.c

index 52862e7..7b106c9 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 f9a17af..5e5fa13 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