projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b68a05
)
Left out the NDEBUG in the previous checkin.
author
Andrew Trick
<atrick@apple.com>
Fri, 27 Jun 2014 05:09:36 +0000
(
05:09
+0000)
committer
Andrew Trick
<atrick@apple.com>
Fri, 27 Jun 2014 05:09:36 +0000
(
05:09
+0000)
llvm-svn: 211867
llvm/lib/CodeGen/MachineScheduler.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineScheduler.cpp
b/llvm/lib/CodeGen/MachineScheduler.cpp
index
b37f689
..
8365330
100644
(file)
--- 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");