Skip to content

Commit ac5b1ec

Browse files
committed
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
1 parent e8f8db1 commit ac5b1ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/CodeGen/MachineScheduler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,9 @@ bool SchedBoundary::checkHazard(SUnit *SU) {
16891689
PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) {
16901690
unsigned NRCycle = getNextResourceCycle(PI->ProcResourceIdx, PI->Cycles);
16911691
if (NRCycle > CurrCycle) {
1692+
#ifndef NDEBUG
16921693
MaxObservedStall = std::max(NRCycle - CurrCycle, MaxObservedStall);
1694+
#endif
16931695
DEBUG(dbgs() << " SU(" << SU->NodeNum << ") "
16941696
<< SchedModel->getResourceName(PI->ProcResourceIdx)
16951697
<< "=" << NRCycle << "c\n");

0 commit comments

Comments
 (0)