misched: trace ReadyQ.

llvm-svn: 157007
This commit is contained in:
Andrew Trick 2012-05-17 18:35:13 +00:00
parent 865d5c0a6d
commit de303d5be0

View File

@ -713,6 +713,13 @@ struct ReadyQ {
*I = Queue.back();
Queue.pop_back();
}
void dump(const char* Name) {
dbgs() << Name << ": ";
for (unsigned i = 0, e = Queue.size(); i < e; ++i)
dbgs() << Queue[i]->NodeNum << " ";
dbgs() << "\n";
}
};
/// ConvergingScheduler shrinks the unscheduled zone using heuristics to balance
@ -828,6 +835,7 @@ static bool compareRPDelta(const RegPressureDelta &LHS,
ConvergingScheduler::CandResult ConvergingScheduler::
pickNodeFromQueue(ReadyQ &Q, const RegPressureTracker &RPTracker,
SchedCandidate &Candidate) {
DEBUG(Q.dump(getQName(Q.ID)));
// getMaxPressureDelta temporarily modifies the tracker.
RegPressureTracker &TempTracker = const_cast<RegPressureTracker&>(RPTracker);