mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
MISched: minor improvement, initialize remaining resources before the first scheduling decision.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f1d6d688f
commit
071966f6bf
@ -1166,6 +1166,16 @@ init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) {
|
||||
RemainingCounts[PIdx] += (Factor * PI->Cycles);
|
||||
}
|
||||
}
|
||||
for (unsigned PIdx = 0, PEnd = SchedModel->getNumProcResourceKinds();
|
||||
PIdx != PEnd; ++PIdx) {
|
||||
if ((int)(RemainingCounts[PIdx] - RemainingCounts[CritResIdx])
|
||||
>= (int)SchedModel->getLatencyFactor()) {
|
||||
CritResIdx = PIdx;
|
||||
}
|
||||
}
|
||||
MaxRemainingCount = std::max(
|
||||
RemainingMicroOps * SchedModel->getMicroOpFactor(),
|
||||
RemainingCounts[CritResIdx]);
|
||||
}
|
||||
|
||||
void ConvergingScheduler::SchedBoundary::
|
||||
|
Loading…
x
Reference in New Issue
Block a user