summaryrefslogtreecommitdiff
path: root/gcc/sel-sched-ir.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-25 21:22:02 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-25 21:22:02 +0000
commite97a173d7b99e48d3fed44cf1cf700940813f4a5 (patch)
tree45d21174cb693c4107abd15c5d5388f51572e027 /gcc/sel-sched-ir.c
parentb24ef46757e17dd94014b0f55d1ba3bd050dbea0 (diff)
downloadgcc-e97a173d7b99e48d3fed44cf1cf700940813f4a5.tar.gz
Eliminate BB_NOTE_LIST scaffolding
gcc/ * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field "note_list" from rtx to rtx_insn *. (BB_NOTE_LIST): Replace this function and... (SET_BB_NOTE_LIST): ...this function with... (BB_NOTE_LIST): ...the former macro implementation. * sched-int.h (concat_note_lists): Strengthen param "from_end" and local "from_start" from rtx to rtx_insn *. Strengthen param "to_endp" from rtx * to rtx_insn **. * haifa-sched.c (concat_note_lists): Likewise. * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of BB_NOTE_LIST. (sel_restore_notes): Likewise. (move_bb_info): Likewise. (BB_NOTE_LIST): Delete this function. (SET_BB_NOTE_LIST): Delete this function. * sel-sched.c (create_block_for_bookkeeping): Eliminate SET_BB_NOTE_LIST in favor of BB_NOTE_LIST. / * rtx-classes-status.txt (TODO): Remove SET_BB_NOTE_LIST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r--gcc/sel-sched-ir.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index 0531b2863a4..c36658f15c4 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -4623,7 +4623,7 @@ static void
init_bb (basic_block bb)
{
remove_notes (bb_note (bb), BB_END (bb));
- SET_BB_NOTE_LIST (bb) = note_list;
+ BB_NOTE_LIST (bb) = note_list;
}
void
@@ -4658,7 +4658,7 @@ sel_restore_notes (void)
{
note_list = BB_NOTE_LIST (first);
restore_other_notes (NULL, first);
- SET_BB_NOTE_LIST (first) = NULL_RTX;
+ BB_NOTE_LIST (first) = NULL;
FOR_BB_INSNS (first, insn)
if (NONDEBUG_INSN_P (insn))
@@ -5266,8 +5266,8 @@ move_bb_info (basic_block merge_bb, basic_block empty_bb)
{
if (in_current_region_p (merge_bb))
concat_note_lists (BB_NOTE_LIST (empty_bb),
- &SET_BB_NOTE_LIST (merge_bb));
- SET_BB_NOTE_LIST (empty_bb) = NULL_RTX;
+ &BB_NOTE_LIST (merge_bb));
+ BB_NOTE_LIST (empty_bb) = NULL;
}
@@ -6456,17 +6456,6 @@ rtx& SET_VINSN_INSN_RTX (vinsn_t vi)
return vi->insn_rtx;
}
-rtx_insn *BB_NOTE_LIST (basic_block bb)
-{
- rtx note_list = SEL_REGION_BB_INFO (bb)->note_list;
- return safe_as_a <rtx_insn *> (note_list);
-}
-
-rtx& SET_BB_NOTE_LIST (basic_block bb)
-{
- return SEL_REGION_BB_INFO (bb)->note_list;
-}
-
rtx_insn *BND_TO (bnd_t bnd)
{
return safe_as_a <rtx_insn *> (bnd->to);