From e78ccb916fe36ec8882889621138507af2072c0b Mon Sep 17 00:00:00 2001 From: geoffk Date: Mon, 13 Aug 2001 06:35:21 +0000 Subject: * loop.c (check_dbra_loop): Use condjump_label to compute jump_label. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44841 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/loop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gcc/loop.c') diff --git a/gcc/loop.c b/gcc/loop.c index f9a17af4cd4..5e5fa132774 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 -- cgit v1.2.1