aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-07-31 19:19:21 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-07-31 19:19:21 +0000
commitae16bf15cae093debe806979a6091c6dceca13a8 (patch)
tree5253936564ff3d5a9b8897e0e8cf815315bb1eec /gcc/loop.c
parent2bfcf297772c19dea98fac91400e458f6a1e449e (diff)
downloadgcc-ae16bf15cae093debe806979a6091c6dceca13a8.zip
gcc-ae16bf15cae093debe806979a6091c6dceca13a8.tar.gz
gcc-ae16bf15cae093debe806979a6091c6dceca13a8.tar.bz2
loop.c (check_dbra_loop): Use single_set to compute jump_label.
* loop.c (check_dbra_loop): Use single_set to compute jump_label. From-SVN: r44517
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 53e8073..998832c 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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