From 0d8b2ca1e12586ade7f6b2f957c998f16505b4eb Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 4 Sep 1999 21:53:04 -0700 Subject: haifa-sched.c (schedule_block): Use next_nonnote_insn instead of NEXT_INSN when... * haifa-sched.c (schedule_block): Use next_nonnote_insn instead of NEXT_INSN when examining speculative insns for SCHED_GROUP_P. From-SVN: r29123 --- gcc/haifa-sched.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/haifa-sched.c') diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 87df858..aebbf95 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -6767,7 +6767,10 @@ schedule_block (bb, rgn_n_insns) { rtx next; - next = NEXT_INSN (insn); + /* Note that we havn't squirrled away the notes for + blocks other than the current. So if this is a + speculative insn, NEXT might otherwise be a note. */ + next = next_nonnote_insn (insn); if (INSN_DEP_COUNT (insn) == 0 && (SCHED_GROUP_P (next) == 0 || GET_RTX_CLASS (GET_CODE (next)) != 'i')) -- cgit v1.1