Commit 353df065 by Geoffrey Keating Committed by Geoffrey Keating

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
parent 5fe2e41b
2001-08-12 Geoffrey Keating <geoffk@redhat.com> 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 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
to better document the files they're in. to better document the files they're in.
......
...@@ -7561,11 +7561,7 @@ check_dbra_loop (loop, insn_count) ...@@ -7561,11 +7561,7 @@ check_dbra_loop (loop, insn_count)
/* Save some info needed to produce the new insns. */ /* Save some info needed to produce the new insns. */
reg = bl->biv->dest_reg; reg = bl->biv->dest_reg;
jump_label = XEXP (SET_SRC (single_set (PREV_INSN (loop_end))), jump_label = condjump_label (PREV_INSN (loop_end));
1);
if (jump_label == pc_rtx)
jump_label = XEXP (SET_SRC (single_set (PREV_INSN (loop_end))),
2);
new_add_val = GEN_INT (-INTVAL (bl->biv->add_val)); new_add_val = GEN_INT (-INTVAL (bl->biv->add_val));
/* Set start_value; if this is not a CONST_INT, we need /* Set start_value; if this is not a CONST_INT, we need
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment