forked from OSchip/llvm-project
Left out the NDEBUG in the previous checkin.
llvm-svn: 211867
This commit is contained in:
parent
4b68a05f3d
commit
040c0da578
|
@ -1689,7 +1689,9 @@ bool SchedBoundary::checkHazard(SUnit *SU) {
|
||||||
PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) {
|
PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) {
|
||||||
unsigned NRCycle = getNextResourceCycle(PI->ProcResourceIdx, PI->Cycles);
|
unsigned NRCycle = getNextResourceCycle(PI->ProcResourceIdx, PI->Cycles);
|
||||||
if (NRCycle > CurrCycle) {
|
if (NRCycle > CurrCycle) {
|
||||||
|
#ifndef NDEBUG
|
||||||
MaxObservedStall = std::max(NRCycle - CurrCycle, MaxObservedStall);
|
MaxObservedStall = std::max(NRCycle - CurrCycle, MaxObservedStall);
|
||||||
|
#endif
|
||||||
DEBUG(dbgs() << " SU(" << SU->NodeNum << ") "
|
DEBUG(dbgs() << " SU(" << SU->NodeNum << ") "
|
||||||
<< SchedModel->getResourceName(PI->ProcResourceIdx)
|
<< SchedModel->getResourceName(PI->ProcResourceIdx)
|
||||||
<< "=" << NRCycle << "c\n");
|
<< "=" << NRCycle << "c\n");
|
||||||
|
|
Loading…
Reference in New Issue