mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Use ComputeLatency in the MachineInstr scheduler.
llvm-svn: 59777
This commit is contained in:
parent
34f79b2425
commit
fe33ecd2d3
@ -99,6 +99,9 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -132,6 +132,7 @@ void ScheduleDAGSDNodes::BuildSchedUnits() {
|
||||
assert(N->getNodeId() == -1 && "Node already inserted!");
|
||||
N->setNodeId(NodeSUnit->NodeNum);
|
||||
|
||||
// Assign the Latency field of NodeSUnit using target-provided information.
|
||||
ComputeLatency(NodeSUnit);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user