diff options
author | Bernd Schmidt <bernds@redhat.com> | 2001-03-01 13:21:30 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2001-03-01 13:21:30 +0000 |
commit | 21e4c9a8db052486c9baf381279d1725048a56f0 (patch) | |
tree | 49363554554ff466c0017de2e20bc441da32ac71 /gcc/sched-int.h | |
parent | c2a3a48235e6a983585e0b5d07718faa68dd41b5 (diff) | |
download | gcc-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.h | 4 |
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) |