aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-int.h
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2015-02-01 07:29:35 +0000
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>2015-02-01 07:29:35 +0000
commit63387a852ee72042b7d2fb3570b85c586ba8c8f9 (patch)
treef474c769c3a80021c6673baed1c44308401c2484 /gcc/sched-int.h
parentb4fbcb1bf2f569af3e57e91132f3573f37ad3800 (diff)
downloadgcc-63387a852ee72042b7d2fb3570b85c586ba8c8f9.zip
gcc-63387a852ee72042b7d2fb3570b85c586ba8c8f9.tar.gz
gcc-63387a852ee72042b7d2fb3570b85c586ba8c8f9.tar.bz2
Fix scheduling undeterminism from sorting with DEBUG_INSNs
* haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro. (rank_for_schedule_debug): Split from ... (rank_for_schedule): ... this. (ready_sort): Sort DEBUG_INSNs separately from normal INSNs. * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order. From-SVN: r220316
Diffstat (limited to 'gcc/sched-int.h')
-rw-r--r--gcc/sched-int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/sched-int.h b/gcc/sched-int.h
index 28e95ea..1b9f8d1 100644
--- a/gcc/sched-int.h
+++ b/gcc/sched-int.h
@@ -917,6 +917,9 @@ struct _haifa_insn_data
int reg_pressure_excess_cost_change;
int model_index;
+ /* Original order of insns in the ready list. */
+ int rfs_debug_orig_order;
+
/* The deciding reason for INSN's place in the ready list. */
int last_rfs_win;