aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-08-13 06:35:21 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-08-13 06:35:21 +0000
commit353df065d4ce0b1999236d0c8d8ea8028a9d7522 (patch)
treea59c76194ea670370ab32ced37f427472b4428d6 /gcc
parent5fe2e41b3f6d65ee72471d7189dc513cf3ba3683 (diff)
downloadgcc-353df065d4ce0b1999236d0c8d8ea8028a9d7522.zip
gcc-353df065d4ce0b1999236d0c8d8ea8028a9d7522.tar.gz
gcc-353df065d4ce0b1999236d0c8d8ea8028a9d7522.tar.bz2
loop.c (check_dbra_loop): Use condjump_label to compute jump_label.
* loop.c (check_dbra_loop): Use condjump_label to compute jump_label. From-SVN: r44841
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/loop.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 52862e7..7b106c9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/loop.c b/gcc/loop.c
index f9a17af..5e5fa13 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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