Use ComputeLatency in the MachineInstr scheduler.

llvm-svn: 59777
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 06d8ed9..ec8fc66 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/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);
   }
 }