mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Revert "MachineScheduler: better book-keeping for asserts."
This reverts commit r212088, which is causing a number of spec failures. Will provide reduced test cases shortly. PR20057 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1690,7 +1690,7 @@ bool SchedBoundary::checkHazard(SUnit *SU) {
|
||||
unsigned NRCycle = getNextResourceCycle(PI->ProcResourceIdx, PI->Cycles);
|
||||
if (NRCycle > CurrCycle) {
|
||||
#ifndef NDEBUG
|
||||
MaxObservedStall = std::max(PI->Cycles, MaxObservedStall);
|
||||
MaxObservedStall = std::max(NRCycle - CurrCycle, MaxObservedStall);
|
||||
#endif
|
||||
DEBUG(dbgs() << " SU(" << SU->NodeNum << ") "
|
||||
<< SchedModel->getResourceName(PI->ProcResourceIdx)
|
||||
@@ -1954,12 +1954,10 @@ void SchedBoundary::bumpNode(SUnit *SU) {
|
||||
PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) {
|
||||
unsigned PIdx = PI->ProcResourceIdx;
|
||||
if (SchedModel->getProcResource(PIdx)->BufferSize == 0) {
|
||||
if (isTop()) {
|
||||
ReservedCycles[PIdx] =
|
||||
std::max(getNextResourceCycle(PIdx, 0), NextCycle + PI->Cycles);
|
||||
}
|
||||
else
|
||||
ReservedCycles[PIdx] = NextCycle;
|
||||
ReservedCycles[PIdx] = isTop() ? NextCycle + PI->Cycles : NextCycle;
|
||||
#ifndef NDEBUG
|
||||
MaxObservedStall = std::max(PI->Cycles, MaxObservedStall);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user