(priority): Call insn_cost() for anti- and output-

dependencies as well as for true dependencies.

From-SVN: r6450
This commit is contained in:
Jim Wilson 1994-01-31 16:13:06 -08:00
parent f6516aeee4
commit 7ecd5f1a30
1 changed files with 1 additions and 7 deletions

View 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;