aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-04-05 22:19:17 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-04-05 22:19:17 +0000
commitfca96842b4d2d5361d11b6531336749531b16445 (patch)
tree4e7a5b59a70fd7a6404d11096aa3927a3a76fd3c /gcc/haifa-sched.c
parent30b83e381f532e0ee42f0134144fa2f14b16f875 (diff)
downloadgcc-fca96842b4d2d5361d11b6531336749531b16445.zip
gcc-fca96842b4d2d5361d11b6531336749531b16445.tar.gz
gcc-fca96842b4d2d5361d11b6531336749531b16445.tar.bz2
re PR bootstrap/48403 (bootstrap comparison failure)
PR bootstrap/48403 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only if old and new states differ. From-SVN: r172006
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 8f2e4ad..30f55be 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