diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 00:07:16 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 00:07:16 +0000 |
commit | 179c282d05a4864bf0929c49555b0d9cb94e5ebf (patch) | |
tree | 0286356e9b2d0b926d2ac15105ab41fae492bc17 /gcc/sel-sched-ir.c | |
parent | 2d63955f9f7ea71a892d7b5790acdd52e2da37b2 (diff) | |
download | gcc-179c282d05a4864bf0929c49555b0d9cb94e5ebf.tar.gz |
sel_bb_{head|end} return rtx_insn
2014-08-21 David Malcolm <dmalcolm@redhat.com>
* sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
(sel_bb_head): Strengthen return type insn_t (currently just an
rtx) to rtx_insn *.
(sel_bb_end): Likewise.
* sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
(sel_bb_head): Strengthen return type and local "head" from
insn_t (currently just an rtx) to rtx_insn *.
(sel_bb_end): Likewise for return type.
(free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
working with insn.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r-- | gcc/sel-sched-ir.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c index f147ce255be..7dffb535bf9 100644 --- a/gcc/sel-sched-ir.c +++ b/gcc/sel-sched-ir.c @@ -132,7 +132,7 @@ static vec<rtx_note *> bb_note_pool; rtx nop_pattern = NULL_RTX; /* A special instruction that resides in EXIT_BLOCK. EXIT_INSN is successor of the insns that lead to EXIT_BLOCK. */ -rtx exit_insn = NULL_RTX; +rtx_insn *exit_insn = NULL; /* TRUE if while scheduling current region, which is loop, its preheader was removed. */ @@ -4530,10 +4530,10 @@ static struct /* Functions to work with control-flow graph. */ /* Return basic block note of BB. */ -insn_t +rtx_insn * sel_bb_head (basic_block bb) { - insn_t head; + rtx_insn *head; if (bb == EXIT_BLOCK_PTR_FOR_FN (cfun)) { @@ -4548,7 +4548,7 @@ sel_bb_head (basic_block bb) head = next_nonnote_insn (note); if (head && (BARRIER_P (head) || BLOCK_FOR_INSN (head) != bb)) - head = NULL_RTX; + head = NULL; } return head; @@ -4562,11 +4562,11 @@ sel_bb_head_p (insn_t insn) } /* Return last insn of BB. */ -insn_t +rtx_insn * sel_bb_end (basic_block bb) { if (sel_bb_empty_p (bb)) - return NULL_RTX; + return NULL; gcc_assert (bb != EXIT_BLOCK_PTR_FOR_FN (cfun)); @@ -5853,7 +5853,7 @@ setup_nop_and_exit_insns (void) void free_nop_and_exit_insns (void) { - exit_insn = NULL_RTX; + exit_insn = NULL; nop_pattern = NULL_RTX; } |