From 0f4012f4759a6c6ca28f11ed1eb98feb8ab1481b Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 11 Jul 2008 22:36:22 +0000 Subject: [PATCH] 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 --- lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 5 +++++ lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp | 4 ---- lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 4 ---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index d33f3d2cb62..b12e68edfb5 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -1136,6 +1136,11 @@ void ScheduleDAG::dumpSchedule() const { /// MachineBasicBlock *ScheduleDAG::Run() { Schedule(); + + DOUT << "*** Final schedule ***\n"; + DEBUG(dumpSchedule()); + DOUT << "\n"; + return BB; } diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp index 50331788ec1..39aadd5279c 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp @@ -99,10 +99,6 @@ void ScheduleDAGList::Schedule() { ListScheduleTopDown(); AvailableQueue->releaseState(); - - DOUT << "*** Final schedule ***\n"; - DEBUG(dumpSchedule()); - DOUT << "\n"; } //===----------------------------------------------------------------------===// diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index ea4cc65bea8..098b7996d4c 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -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