We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f8db1 commit ac5b1ecCopy full SHA for ac5b1ec
lib/CodeGen/MachineScheduler.cpp
@@ -1689,7 +1689,9 @@ bool SchedBoundary::checkHazard(SUnit *SU) {
1689
PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) {
1690
unsigned NRCycle = getNextResourceCycle(PI->ProcResourceIdx, PI->Cycles);
1691
if (NRCycle > CurrCycle) {
1692
+#ifndef NDEBUG
1693
MaxObservedStall = std::max(NRCycle - CurrCycle, MaxObservedStall);
1694
+#endif
1695
DEBUG(dbgs() << " SU(" << SU->NodeNum << ") "
1696
<< SchedModel->getResourceName(PI->ProcResourceIdx)
1697
<< "=" << NRCycle << "c\n");
0 commit comments