diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-01-31 16:13:06 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-01-31 16:13:06 -0800 |
commit | 7ecd5f1a30c8b5c48ed8659b1c7571a3180ea24e (patch) | |
tree | ac0f99f3e36a553a0aa7cc79f8e8b335bff98f78 /gcc/sched.c | |
parent | f6516aeee4e426b3e08bcc3794ba4256a54a3449 (diff) | |
download | gcc-7ecd5f1a30c8b5c48ed8659b1c7571a3180ea24e.zip gcc-7ecd5f1a30c8b5c48ed8659b1c7571a3180ea24e.tar.gz gcc-7ecd5f1a30c8b5c48ed8659b1c7571a3180ea24e.tar.bz2 |
(priority): Call insn_cost() for anti- and output-
dependencies as well as for true dependencies.
From-SVN: r6450
Diffstat (limited to 'gcc/sched.c')
-rw-r--r-- | gcc/sched.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/sched.c b/gcc/sched.c index f74d96f..57fd68b 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -1474,13 +1474,7 @@ priority (insn) insn_cost of the current instruction to its priority (e.g. move the insn_cost call down to the end). */ - if (REG_NOTE_KIND (prev) == 0) - /* Data dependence. */ - prev_priority = priority (x) + insn_cost (x, prev, insn) - 1; - else - /* Anti or output dependence. Don't add the latency of this - insn's result, because it isn't being used. */ - prev_priority = priority (x); + prev_priority = priority (x) + insn_cost (x, prev, insn) - 1; if (prev_priority > max_priority) max_priority = prev_priority; |