diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-05 22:19:17 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-05 22:19:17 +0000 |
commit | 2cd04cca51a8b7740f043ccfd18ed734991f86c8 (patch) | |
tree | 4e7a5b59a70fd7a6404d11096aa3927a3a76fd3c /gcc/haifa-sched.c | |
parent | a6452d58ed621e2c139a757c2c1af55c6e00bd54 (diff) | |
download | gcc-2cd04cca51a8b7740f043ccfd18ed734991f86c8.tar.gz |
PR bootstrap/48403
* haifa-sched.c (schedule_block): Increment cycle_issued_insns only
if old and new states differ.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172006 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 8f2e4ada33c..30f55be5178 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -3230,10 +3230,12 @@ schedule_block (basic_block *target_bb) if (recog_memoized (insn) >= 0) { + memcpy (temp_state, curr_state, dfa_state_size); cost = state_transition (curr_state, insn); if (!flag_sched_pressure) gcc_assert (cost < 0); - cycle_issued_insns++; + if (memcmp (temp_state, curr_state, dfa_state_size) != 0) + cycle_issued_insns++; asm_p = false; } else |