From 7ecd5f1a30c8b5c48ed8659b1c7571a3180ea24e Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 31 Jan 1994 16:13:06 -0800 Subject: [PATCH] (priority): Call insn_cost() for anti- and output- dependencies as well as for true dependencies. From-SVN: r6450 --- gcc/sched.c | 8 +------- 1 file changed, 1 insertion(+), 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;