[llvm] r184039 - Missing NDEBUGs.
Andrew Trick
atrick at apple.com
Fri Jun 14 22:46:47 PDT 2013
Author: atrick
Date: Sat Jun 15 00:46:47 2013
New Revision: 184039
URL: http://llvm.org/viewvc/llvm-project?rev=184039&view=rev
Log:
Missing NDEBUGs.
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=184039&r1=184038&r2=184039&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Sat Jun 15 00:46:47 2013
@@ -1309,11 +1309,13 @@ public:
return Available.getID() == ConvergingScheduler::TopQID;
}
+#ifndef NDEBUG
const char *getResourceName(unsigned PIdx) {
if (!PIdx)
return "MOps";
return SchedModel->getProcResource(PIdx)->Name;
}
+#endif
/// Get the number of latency cycles "covered" by the scheduled
/// instructions. This is the larger of the critical path within the zone
@@ -1370,7 +1372,9 @@ public:
SUnit *pickOnlyChoice();
+#ifndef NDEBUG
void dumpScheduledState();
+#endif
};
private:
@@ -1936,6 +1940,7 @@ SUnit *ConvergingScheduler::SchedBoundar
return NULL;
}
+#ifndef NDEBUG
// This is useful information to dump after bumpNode.
// Note that the Queue contents are more useful before pickNodeFromQueue.
void ConvergingScheduler::SchedBoundary::dumpScheduledState() {
@@ -1959,6 +1964,7 @@ void ConvergingScheduler::SchedBoundary:
<< (IsResourceLimited ? " - Resource" : " - Latency")
<< " limited.\n";
}
+#endif
void ConvergingScheduler::SchedCandidate::
initResourceDelta(const ScheduleDAGMI *DAG,
More information about the llvm-commits
mailing list