OSDN Git Service

(priority): Call insn_cost() for anti- and output-
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Feb 1994 00:13:06 +0000 (00:13 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Feb 1994 00:13:06 +0000 (00:13 +0000)
dependencies as well as for true dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6450 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/sched.c

index f74d96f..57fd68b 100644 (file)
@@ -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;