Missing NDEBUGs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick
2013-06-15 05:46:47 +00:00
parent fa989e7d43
commit aaaae51647

View File

@ -1309,11 +1309,13 @@ public:
return Available.getID() == ConvergingScheduler::TopQID; return Available.getID() == ConvergingScheduler::TopQID;
} }
#ifndef NDEBUG
const char *getResourceName(unsigned PIdx) { const char *getResourceName(unsigned PIdx) {
if (!PIdx) if (!PIdx)
return "MOps"; return "MOps";
return SchedModel->getProcResource(PIdx)->Name; return SchedModel->getProcResource(PIdx)->Name;
} }
#endif
/// Get the number of latency cycles "covered" by the scheduled /// Get the number of latency cycles "covered" by the scheduled
/// instructions. This is the larger of the critical path within the zone /// instructions. This is the larger of the critical path within the zone
@ -1370,7 +1372,9 @@ public:
SUnit *pickOnlyChoice(); SUnit *pickOnlyChoice();
#ifndef NDEBUG
void dumpScheduledState(); void dumpScheduledState();
#endif
}; };
private: private:
@ -1936,6 +1940,7 @@ SUnit *ConvergingScheduler::SchedBoundary::pickOnlyChoice() {
return NULL; return NULL;
} }
#ifndef NDEBUG
// This is useful information to dump after bumpNode. // This is useful information to dump after bumpNode.
// Note that the Queue contents are more useful before pickNodeFromQueue. // Note that the Queue contents are more useful before pickNodeFromQueue.
void ConvergingScheduler::SchedBoundary::dumpScheduledState() { void ConvergingScheduler::SchedBoundary::dumpScheduledState() {
@ -1959,6 +1964,7 @@ void ConvergingScheduler::SchedBoundary::dumpScheduledState() {
<< (IsResourceLimited ? " - Resource" : " - Latency") << (IsResourceLimited ? " - Resource" : " - Latency")
<< " limited.\n"; << " limited.\n";
} }
#endif
void ConvergingScheduler::SchedCandidate:: void ConvergingScheduler::SchedCandidate::
initResourceDelta(const ScheduleDAGMI *DAG, initResourceDelta(const ScheduleDAGMI *DAG,