mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
misched: trace ReadyQ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73a0d8ecf8
commit
81f1be3b5a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user