diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-15 03:40:57 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-15 03:40:57 +0000 |
commit | 42a9694b906c9edf06c16eccb7e92c1298499633 (patch) | |
tree | 93e37f77256f098b57e12481ca289d1340c0c1f0 /gcc/haifa-sched.c | |
parent | 08bea2b875c7b1dfffe915088d4f6a26d78ce175 (diff) | |
download | gcc-42a9694b906c9edf06c16eccb7e92c1298499633.tar.gz |
* haifa-sched.c (sched_init): Don't put a note in front of any BARRIER.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38267 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 2d8376ee272..b1d3eff7b2f 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -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 |