Commit 5d34b050 by David Malcolm Committed by David Malcolm

duplicate_insn_chain accepts rtx_insn

gcc/
2014-08-26  David Malcolm  <dmalcolm@redhat.com>

	* rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
	rtx_insn *.
	* cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
	"to" and locals "insn", "next", "copy".  Remove now-redundant
	checked cast.

From-SVN: r214544
parent 71d64cd4
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
rtx_insn *.
* cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
"to" and locals "insn", "next", "copy". Remove now-redundant
checked cast.
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
rtx_insn * and param 4 from rtx * to rtx_insn **.
(get_condition): Strengthen param 1 from rtx to rtx_insn * and
......
......@@ -4082,9 +4082,9 @@ cfg_layout_can_duplicate_bb_p (const_basic_block bb)
}
rtx_insn *
duplicate_insn_chain (rtx from, rtx to)
duplicate_insn_chain (rtx_insn *from, rtx_insn *to)
{
rtx insn, next, copy;
rtx_insn *insn, *next, *copy;
rtx_note *last;
/* Avoid updating of boundaries of previous basic block. The
......@@ -4167,7 +4167,7 @@ duplicate_insn_chain (rtx from, rtx to)
}
insn = NEXT_INSN (last);
delete_insn (last);
return safe_as_a <rtx_insn *> (insn);
return insn;
}
/* Create a duplicate of the basic block BB. */
......
......@@ -3200,7 +3200,7 @@ extern int fixup_args_size_notes (rtx, rtx, int);
/* In cfgrtl.c */
extern void print_rtl_with_bb (FILE *, const_rtx, int);
extern rtx_insn *duplicate_insn_chain (rtx, rtx);
extern rtx_insn *duplicate_insn_chain (rtx_insn *, rtx_insn *);
/* In expmed.c */
extern void init_expmed (void);
......
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