* gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.

From-SVN: r34592
This commit is contained in:
Richard Kenner 2000-06-19 01:40:32 +00:00 committed by Richard Kenner
parent c357082f8e
commit 0a37799771
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,7 @@
Sun Jun 18 21:42:15 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
* function.c (put_var_into_stack): Don't reference DECL_ fields
if input is a SAVE_EXPR.
Use set_mem_attributes in COMPLEX case.

View File

@ -4346,10 +4346,9 @@ insert_insn_end_bb (expr, bb, pre)
If we inserted before the CODE_LABEL, then we would be putting
the insn in the wrong basic block. In that case, put the insn
after the CODE_LABEL. Also, respect NOTE_INSN_BASIC_BLOCK. */
if (GET_CODE (insn) == CODE_LABEL)
insn = NEXT_INSN (insn);
else if (GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_BASIC_BLOCK)
while (GET_CODE (insn) == CODE_LABEL
|| (GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_BASIC_BLOCK))
insn = NEXT_INSN (insn);
new_insn = emit_block_insn_before (pat, insn, BASIC_BLOCK (bb));