Factor out debugging code into the common base class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-07-11 22:36:22 +00:00
parent dbe2a5a269
commit 0f4012f475
3 changed files with 5 additions and 8 deletions

View File

@ -1136,6 +1136,11 @@ void ScheduleDAG::dumpSchedule() const {
///
MachineBasicBlock *ScheduleDAG::Run() {
Schedule();
DOUT << "*** Final schedule ***\n";
DEBUG(dumpSchedule());
DOUT << "\n";
return BB;
}

View File

@ -99,10 +99,6 @@ void ScheduleDAGList::Schedule() {
ListScheduleTopDown();
AvailableQueue->releaseState();
DOUT << "*** Final schedule ***\n";
DEBUG(dumpSchedule());
DOUT << "\n";
}
//===----------------------------------------------------------------------===//

View File

@ -204,10 +204,6 @@ void ScheduleDAGRRList::Schedule() {
if (!Fast)
CommuteNodesToReducePressure();
DOUT << "*** Final schedule ***\n";
DEBUG(dumpSchedule());
DOUT << "\n";
}
/// CommuteNodesToReducePressure - If a node is two-address and commutable, and