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
This commit is contained in:
David Malcolm 2014-08-26 19:51:02 +00:00 committed by David Malcolm
parent 71d64cd435
commit 5d34b05026
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
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

View File

@ -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. */

View File

@ -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);