Left out the NDEBUG in the previous checkin.
authorAndrew Trick <atrick@apple.com>
Fri, 27 Jun 2014 05:09:36 +0000 (05:09 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 27 Jun 2014 05:09:36 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index b37f689689f1c9168c5d061a35b1f831dd6a8c71..836533056cbce190976207ada22a08c6132b0682 100644 (file)
@@ -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");