mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Use ComputeLatency in the MachineInstr scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f209c2cc30
commit
787782f4ca
@ -99,6 +99,9 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
|
|||||||
Terminator->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false);
|
Terminator->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false);
|
||||||
if (MI->getDesc().isTerminator() || MI->isLabel())
|
if (MI->getDesc().isTerminator() || MI->isLabel())
|
||||||
Terminator = SU;
|
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!");
|
assert(N->getNodeId() == -1 && "Node already inserted!");
|
||||||
N->setNodeId(NodeSUnit->NodeNum);
|
N->setNodeId(NodeSUnit->NodeNum);
|
||||||
|
|
||||||
|
// Assign the Latency field of NodeSUnit using target-provided information.
|
||||||
ComputeLatency(NodeSUnit);
|
ComputeLatency(NodeSUnit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user