aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-int.h
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@redhat.com>2001-03-01 13:21:30 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2001-03-01 13:21:30 +0000
commit21e4c9a8db052486c9baf381279d1725048a56f0 (patch)
tree49363554554ff466c0017de2e20bc441da32ac71 /gcc/sched-int.h
parentc2a3a48235e6a983585e0b5d07718faa68dd41b5 (diff)
downloadgcc-21e4c9a8db052486c9baf381279d1725048a56f0.zip
gcc-21e4c9a8db052486c9baf381279d1725048a56f0.tar.gz
gcc-21e4c9a8db052486c9baf381279d1725048a56f0.tar.bz2
Avoid exponential runtime
From-SVN: r40145
Diffstat (limited to 'gcc/sched-int.h')
-rw-r--r--gcc/sched-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/sched-int.h b/gcc/sched-int.h
index 2a7eb6a..0eb2e66 100644
--- a/gcc/sched-int.h
+++ b/gcc/sched-int.h
@@ -198,6 +198,9 @@ struct haifa_insn_data
moved load insn and this one. */
unsigned int fed_by_spec_load : 1;
unsigned int is_load_insn : 1;
+
+ /* Nonzero if priority has been computed already. */
+ unsigned int priority_known : 1;
};
extern struct haifa_insn_data *h_i_d;
@@ -209,6 +212,7 @@ extern struct haifa_insn_data *h_i_d;
#define CANT_MOVE(insn) (h_i_d[INSN_UID (insn)].cant_move)
#define INSN_DEP_COUNT(INSN) (h_i_d[INSN_UID (INSN)].dep_count)
#define INSN_PRIORITY(INSN) (h_i_d[INSN_UID (INSN)].priority)
+#define INSN_PRIORITY_KNOWN(INSN) (h_i_d[INSN_UID (INSN)].priority_known)
#define INSN_COST(INSN) (h_i_d[INSN_UID (INSN)].cost)
#define INSN_UNIT(INSN) (h_i_d[INSN_UID (INSN)].units)
#define INSN_REG_WEIGHT(INSN) (h_i_d[INSN_UID (INSN)].reg_weight)