summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2014-06-27 05:09:36 +0000
committerAndrew Trick <atrick@apple.com>2014-06-27 05:09:36 +0000
commit040c0da57830c5bb0a99be4eb1c2a97d38c78be0 (patch)
treeb5111616187b2483146562608e82c511003d9d32
parent4b68a05f3d29036a3bfe778255cffcd983349a13 (diff)
downloadbcm5719-llvm-040c0da57830c5bb0a99be4eb1c2a97d38c78be0.tar.gz
bcm5719-llvm-040c0da57830c5bb0a99be4eb1c2a97d38c78be0.zip
Left out the NDEBUG in the previous checkin.
llvm-svn: 211867
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index b37f689689f..836533056cb 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/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");
OpenPOWER on IntegriCloud