commit | 13f4a6423bb0ec3af4f7a629d7e6f743c2fb9c84 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Nov 21 01:44:51 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Nov 21 01:44:51 2008 +0000 |
tree | bdd4b7ee0b522cf44903498b168c188aeef81273 | |
parent | 2add045e2b2677b16aed4a78826a3fb2bdabc034 [diff] [blame] |
Use ComputeLatency in the MachineInstr scheduler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59777 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index 06d8ed9..ec8fc66 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -99,6 +99,9 @@ Terminator->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false); if (MI->getDesc().isTerminator() || MI->isLabel()) Terminator = SU; + + // Assign the Latency field of SU using target-provided information. + ComputeLatency(SU); } }