From ac5b1ec8c4d87ade19980db952cc9a1a6856f8a2 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Fri, 27 Jun 2014 05:09:36 +0000 Subject: [PATCH] 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 --- lib/CodeGen/MachineScheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index b37f689689f1c..836533056cbce 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");