1 --- a/gcc/haifa-sched.c
2 +++ b/gcc/haifa-sched.c
3 @@ -4654,10 +4654,12 @@ schedule_block (basic_block *target_bb)
5 if (recog_memoized (insn) >= 0)
7 + memcpy (temp_state, curr_state, dfa_state_size);
8 cost = state_transition (curr_state, insn);
9 if (sched_pressure != SCHED_PRESSURE_WEIGHTED)
10 gcc_assert (cost < 0);
11 - cycle_issued_insns++;
12 + if (memcmp (temp_state, curr_state, dfa_state_size) != 0)
13 + cycle_issued_insns++;