diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-27 17:25:14 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-27 17:25:14 +0000 |
commit | 83458610bef672da35282ed371bfb858f408b290 (patch) | |
tree | f622ad1b9d2f4d839d3052a0f4fc42b6ebf07329 /gcc/gcse.c | |
parent | a4dfe15634b61513d076cf07d9fa3e69d5de440a (diff) | |
download | gcc-83458610bef672da35282ed371bfb858f408b290.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35296 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c index 2b30ee9dcb0..ad475eeaf66 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -4331,8 +4331,7 @@ insert_insn_end_bb (expr, bb, pre) the insn in the wrong basic block. In that case, put the insn after the CODE_LABEL. Also, respect NOTE_INSN_BASIC_BLOCK. */ while (GET_CODE (insn) == CODE_LABEL - || (GET_CODE (insn) == NOTE - && NOTE_LINE_NUMBER (insn) == NOTE_INSN_BASIC_BLOCK)) + || NOTE_INSN_BASIC_BLOCK_P (insn)) insn = NEXT_INSN (insn); new_insn = emit_block_insn_before (pat, insn, BASIC_BLOCK (bb)); |