aboutsummaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-07-27 17:25:14 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-07-27 17:25:14 +0000
commit589ca5cb100f0975f12890c95ea2b29301bb4294 (patch)
treef622ad1b9d2f4d839d3052a0f4fc42b6ebf07329 /gcc/bb-reorder.c
parent2d97a71922dc879bf7ba11b5543ac4de216063e4 (diff)
downloadgcc-589ca5cb100f0975f12890c95ea2b29301bb4294.zip
gcc-589ca5cb100f0975f12890c95ea2b29301bb4294.tar.gz
gcc-589ca5cb100f0975f12890c95ea2b29301bb4294.tar.bz2
Put phi nodes after NOTE_INSN_BASIC_BLOCK.
* rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro. * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P. (get_prev_bb_note): Likewise. (remove_scope_notes): Likewise. * flow.c (commit_one_edge_insertion): Likewise. (merge_blocks_nomove): Likewise. (verify_flow_info): Likewise. * gcse.c (insert_insn_end_bb): Likewise. * reg-stack.c (emit_swap_insn): Likewise. * ssa.c (first_insn_after_basic_block_note): New function. (insert_phi_node): Use it. (rename_block): Likewise. (eliminate_phi): Likewise. (make_regs_equivalent_over_bad_edges): Likewise. (make_equivalent_phi_alternatives_equivalent): Likewise. (for_each_successor_phi): Likewise. (convert_from_ssa): Modify phi-node deletion algorithm. From-SVN: r35296
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index f3b72b8..bd23e12 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -777,8 +777,7 @@ get_next_bb_note (x)
{
while (x)
{
- if (GET_CODE (x) == NOTE
- && NOTE_LINE_NUMBER (x) == NOTE_INSN_BASIC_BLOCK)
+ if (NOTE_INSN_BASIC_BLOCK_P (x))
return x;
x = NEXT_INSN (x);
}
@@ -792,8 +791,7 @@ get_prev_bb_note (x)
{
while (x)
{
- if (GET_CODE (x) == NOTE
- && NOTE_LINE_NUMBER (x) == NOTE_INSN_BASIC_BLOCK)
+ if (NOTE_INSN_BASIC_BLOCK_P (x))
return x;
x = PREV_INSN (x);
}
@@ -1050,8 +1048,7 @@ remove_scope_notes ()
for (x = get_insns (); x; x = next)
{
next = NEXT_INSN (x);
- if (GET_CODE (x) == NOTE
- && NOTE_LINE_NUMBER (x) == NOTE_INSN_BASIC_BLOCK)
+ if (NOTE_INSN_BASIC_BLOCK_P (x))
currbb = NOTE_BASIC_BLOCK (x);
if (GET_CODE (x) == NOTE