From: David Malcolm Date: Fri, 22 Aug 2014 18:06:16 +0000 (+0000) Subject: loop-doloop.c: Use rtx_insn in a few places X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=871eb193238ded31b97728930eb0b15c865f6a03;p=gcc.git loop-doloop.c: Use rtx_insn in a few places gcc/ * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx to rtx_insn *. (add_test): Likewise for locals "seq", "jump". (doloop_modify): Likewise for locals "sequence", "jump_insn". From-SVN: r214342 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 505e8ed2908..85f98d951ee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-08-22 David Malcolm + + * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx + to rtx_insn *. + (add_test): Likewise for locals "seq", "jump". + (doloop_modify): Likewise for locals "sequence", "jump_insn". + 2014-08-22 David Malcolm * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index 0e843938134..42e7f701fa7 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -261,7 +261,7 @@ static bool doloop_valid_p (struct loop *loop, struct niter_desc *desc) { basic_block *body = get_loop_body (loop), bb; - rtx insn; + rtx_insn *insn; unsigned i; bool result = true; @@ -336,7 +336,8 @@ cleanup: static bool add_test (rtx cond, edge *e, basic_block dest) { - rtx seq, jump, label; + rtx_insn *seq, *jump; + rtx label; enum machine_mode mode; rtx op0 = XEXP (cond, 0), op1 = XEXP (cond, 1); enum rtx_code code = GET_CODE (cond); @@ -401,8 +402,8 @@ doloop_modify (struct loop *loop, struct niter_desc *desc, { rtx counter_reg; rtx tmp, noloop = NULL_RTX; - rtx sequence; - rtx jump_insn; + rtx_insn *sequence; + rtx_insn *jump_insn; rtx jump_label; int nonneg = 0; bool increment_count;