mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
461a646a03
commit
e163168aab
@ -217,9 +217,6 @@ void ScheduleDAGSDNodes::BuildSchedUnits() {
|
||||
// This is a temporary workaround.
|
||||
SUnits.reserve(NumNodes * 2);
|
||||
|
||||
// Check to see if the scheduler cares about latencies.
|
||||
bool UnitLatencies = ForceUnitLatencies();
|
||||
|
||||
// Add all nodes in depth first order.
|
||||
SmallVector<SDNode*, 64> Worklist;
|
||||
SmallPtrSet<SDNode*, 64> Visited;
|
||||
@ -282,10 +279,7 @@ void ScheduleDAGSDNodes::BuildSchedUnits() {
|
||||
N->setNodeId(NodeSUnit->NodeNum);
|
||||
|
||||
// Assign the Latency field of NodeSUnit using target-provided information.
|
||||
if (UnitLatencies)
|
||||
NodeSUnit->Latency = 1;
|
||||
else
|
||||
ComputeLatency(NodeSUnit);
|
||||
ComputeLatency(NodeSUnit);
|
||||
}
|
||||
}
|
||||
|
||||
@ -377,6 +371,12 @@ void ScheduleDAGSDNodes::BuildSchedGraph(AliasAnalysis *AA) {
|
||||
}
|
||||
|
||||
void ScheduleDAGSDNodes::ComputeLatency(SUnit *SU) {
|
||||
// Check to see if the scheduler cares about latencies.
|
||||
if (ForceUnitLatencies()) {
|
||||
SU->Latency = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
const InstrItineraryData &InstrItins = TM.getInstrItineraryData();
|
||||
|
||||
// Compute the latency for the node. We use the sum of the latencies for
|
||||
|
Loading…
x
Reference in New Issue
Block a user