diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2014-07-01 17:23:11 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2014-07-01 17:23:11 +0000 |
commit | f575a737518d44febcae48206f2cddf3c8935a67 (patch) | |
tree | c06f34669c99a760b2c3811d9431a656b6dafe8c /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | afef4c99dc517c8dc02c1868f421783d4820541c (diff) | |
download | llvm-f575a737518d44febcae48206f2cddf3c8935a67.zip llvm-f575a737518d44febcae48206f2cddf3c8935a67.tar.gz llvm-f575a737518d44febcae48206f2cddf3c8935a67.tar.bz2 |
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
llvm-svn: 212109
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 5b5b3f3..8365330 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -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 } } } |