* haifa-sched.c (sched_init): Don't put a note in front of any BARRIER.

From-SVN: r38267
This commit is contained in:
J"orn Rennecke 2000-12-15 03:40:57 +00:00 committed by Joern Rennecke
parent edac124d95
commit 4cf37b4a68
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Fri Dec 15 03:37:51 2000 J"orn Rennecke <amylaar@redhat.com>
* haifa-sched.c (sched_init): Don't put a note in front of any BARRIER.
2000-12-14 Jim Wilson <wilson@redhat.com>
* alias.c (get_alias_set): Call record_component_aliases for

View File

@ -1955,10 +1955,8 @@ sched_init (dump_file)
if (NEXT_INSN (insn) == 0
|| (GET_CODE (insn) != NOTE
&& GET_CODE (insn) != CODE_LABEL
/* Don't emit a NOTE if it would end up between an unconditional
jump and a BARRIER. */
&& !(GET_CODE (insn) == JUMP_INSN
&& GET_CODE (NEXT_INSN (insn)) == BARRIER)))
/* Don't emit a NOTE if it would end up before a BARRIER. */
&& GET_CODE (NEXT_INSN (insn)) != BARRIER))
emit_note_after (NOTE_INSN_DELETED, BLOCK_END (n_basic_blocks - 1));
/* Compute INSN_REG_WEIGHT for all blocks. We must do this before