diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-13 06:35:21 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-13 06:35:21 +0000 |
commit | e78ccb916fe36ec8882889621138507af2072c0b (patch) | |
tree | a59c76194ea670370ab32ced37f427472b4428d6 /gcc/loop.c | |
parent | 67957b01c6c384695a345e38f5a3a31212342477 (diff) | |
download | gcc-e78ccb916fe36ec8882889621138507af2072c0b.tar.gz |
* 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
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 |