From ae16bf15cae093debe806979a6091c6dceca13a8 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 31 Jul 2001 19:19:21 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/loop.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c009f3bd39..b10257399c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-30 Geoffrey Keating + + * loop.c (check_dbra_loop): Use single_set to compute + jump_label. + 2001-07-31 Daniel Berlin PowerPC reorg and support for powerpc64-*-linux*. diff --git a/gcc/loop.c b/gcc/loop.c index 53e80737467..998832ca8d2 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