Commit e06ed0c4 by David Malcolm Committed by David Malcolm

recog.c: Use rtx_insn

gcc/
	* recog.c (split_insn): Strengthen param "insn" and locals
	"first", "last" from rtx to rtx_insn *.
	(split_all_insns): Likewise for locals "insn", "next".
	(split_all_insns_noflow): Likewise.

From-SVN: r214363
parent f719babc
2014-08-22 David Malcolm <dmalcolm@redhat.com> 2014-08-22 David Malcolm <dmalcolm@redhat.com>
* recog.c (split_insn): Strengthen param "insn" and locals
"first", "last" from rtx to rtx_insn *.
(split_all_insns): Likewise for locals "insn", "next".
(split_all_insns_noflow): Likewise.
2014-08-22 David Malcolm <dmalcolm@redhat.com>
* rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
const rtx_insn *. const rtx_insn *.
(debug_rtx_range): Likewise for params 1 and 2 "start" and "end". (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
......
...@@ -59,7 +59,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -59,7 +59,7 @@ along with GCC; see the file COPYING3. If not see
static void validate_replace_rtx_1 (rtx *, rtx, rtx, rtx, bool); static void validate_replace_rtx_1 (rtx *, rtx, rtx, rtx, bool);
static void validate_replace_src_1 (rtx *, void *); static void validate_replace_src_1 (rtx *, void *);
static rtx split_insn (rtx); static rtx split_insn (rtx_insn *);
struct target_recog default_target_recog; struct target_recog default_target_recog;
#if SWITCHABLE_TARGET #if SWITCHABLE_TARGET
...@@ -2772,11 +2772,11 @@ reg_fits_class_p (const_rtx operand, reg_class_t cl, int offset, ...@@ -2772,11 +2772,11 @@ reg_fits_class_p (const_rtx operand, reg_class_t cl, int offset,
or NULL if unsuccessful. */ or NULL if unsuccessful. */
static rtx static rtx
split_insn (rtx insn) split_insn (rtx_insn *insn)
{ {
/* Split insns here to get max fine-grain parallelism. */ /* Split insns here to get max fine-grain parallelism. */
rtx first = PREV_INSN (insn); rtx_insn *first = PREV_INSN (insn);
rtx last = try_split (PATTERN (insn), insn, 1); rtx_insn *last = try_split (PATTERN (insn), insn, 1);
rtx insn_set, last_set, note; rtx insn_set, last_set, note;
if (last == insn) if (last == insn)
...@@ -2837,7 +2837,7 @@ split_all_insns (void) ...@@ -2837,7 +2837,7 @@ split_all_insns (void)
FOR_EACH_BB_REVERSE_FN (bb, cfun) FOR_EACH_BB_REVERSE_FN (bb, cfun)
{ {
rtx insn, next; rtx_insn *insn, *next;
bool finish = false; bool finish = false;
rtl_profile_for_bb (bb); rtl_profile_for_bb (bb);
...@@ -2893,7 +2893,7 @@ split_all_insns (void) ...@@ -2893,7 +2893,7 @@ split_all_insns (void)
unsigned int unsigned int
split_all_insns_noflow (void) split_all_insns_noflow (void)
{ {
rtx next, insn; rtx_insn *next, *insn;
for (insn = get_insns (); insn; insn = next) for (insn = get_insns (); insn; insn = next)
{ {
......
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