[llvm] r211867 - Left out the NDEBUG in the previous checkin.

Andrew Trick atrick at apple.com
Thu Jun 26 22:09:36 PDT 2014


Author: atrick
Date: Fri Jun 27 00:09:36 2014
New Revision: 211867

URL: http://llvm.org/viewvc/llvm-project?rev=211867&view=rev
Log:
Left out the NDEBUG in the previous checkin.

Modified:
    llvm/trunk/lib/CodeGen/MachineScheduler.cpp

Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=211867&r1=211866&r2=211867&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Fri Jun 27 00:09:36 2014
@@ -1689,7 +1689,9 @@ bool SchedBoundary::checkHazard(SUnit *S
            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");





More information about the llvm-commits mailing list