diff options
author | Andrew Trick <atrick@apple.com> | 2014-06-27 05:09:36 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2014-06-27 05:09:36 +0000 |
commit | ac5b1ec8c4d87ade19980db952cc9a1a6856f8a2 (patch) | |
tree | 960c92f6a19b194413332ec019f83627576fb835 | |
parent | e8f8db1c5af2504f8d5100df44cf131e15d33002 (diff) | |
download | llvm-ac5b1ec8c4d87ade19980db952cc9a1a6856f8a2.tar.gz llvm-ac5b1ec8c4d87ade19980db952cc9a1a6856f8a2.tar.bz2 llvm-ac5b1ec8c4d87ade19980db952cc9a1a6856f8a2.tar.xz |
Left out the NDEBUG in the previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211867 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/MachineScheduler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index b37f689689..836533056c 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -1689,7 +1689,9 @@ bool SchedBoundary::checkHazard(SUnit *SU) { PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { unsigned NRCycle = getNextResourceCycle(PI->ProcResourceIdx, PI->Cycles); if (NRCycle > CurrCycle) { +#ifndef NDEBUG MaxObservedStall = std::max(NRCycle - CurrCycle, MaxObservedStall); +#endif DEBUG(dbgs() << " SU(" << SU->NodeNum << ") " << SchedModel->getResourceName(PI->ProcResourceIdx) << "=" << NRCycle << "c\n"); |