diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-07-27 17:25:14 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-07-27 17:25:14 +0000 |
commit | 589ca5cb100f0975f12890c95ea2b29301bb4294 (patch) | |
tree | f622ad1b9d2f4d839d3052a0f4fc42b6ebf07329 /gcc/reg-stack.c | |
parent | 2d97a71922dc879bf7ba11b5543ac4de216063e4 (diff) | |
download | gcc-589ca5cb100f0975f12890c95ea2b29301bb4294.tar.gz |
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/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 5750e754f68..8f0b50e18d9 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -978,8 +978,7 @@ emit_swap_insn (insn, regstack, reg) while (tmp != limit) { if (GET_CODE (tmp) == CODE_LABEL - || (GET_CODE (tmp) == NOTE - && NOTE_LINE_NUMBER (tmp) == NOTE_INSN_BASIC_BLOCK) + || NOTE_INSN_BASIC_BLOCK_P (tmp) || (GET_CODE (tmp) == INSN && stack_regs_mentioned (tmp))) { |