diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-02-01 00:13:06 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-02-01 00:13:06 +0000 |
commit | 1435114cf33609e474201c1d4ce1e5943c62b9c8 (patch) | |
tree | ac0f99f3e36a553a0aa7cc79f8e8b335bff98f78 /gcc/sched.c | |
parent | a1d60baf349b8c68baa322c45126243ae6f12fa1 (diff) | |
download | gcc-1435114cf33609e474201c1d4ce1e5943c62b9c8.tar.gz |
(priority): Call insn_cost() for anti- and output-
dependencies as well as for true dependencies.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6450 138bc75d-0d04-0410-961f-82ee72b054a4
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 f74d96f11dd..57fd68b662d 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; |