From bfd74c6d9ca04abe246d56d5d5216518fbb0a7c2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 14 Oct 2006 08:34:06 +0000 Subject: [PATCH] Debug tweak. llvm-svn: 30959 --- lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 4 ++-- lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 947504af2ad..ad9bfefd2f3 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -656,7 +656,7 @@ void SUnit::dumpAll(const SelectionDAG *G) const { std::cerr << " ch #"; else std::cerr << " val #"; - std::cerr << I->first << "\n"; + std::cerr << I->first << " - SU(" << I->first->NodeNum << ")\n"; } } if (Succs.size() != 0) { @@ -667,7 +667,7 @@ void SUnit::dumpAll(const SelectionDAG *G) const { std::cerr << " ch #"; else std::cerr << " val #"; - std::cerr << I->first << "\n"; + std::cerr << I->first << " - SU(" << I->first->NodeNum << ")\n"; } } std::cerr << "\n"; diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 28dc8684d95..ad983832202 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -90,10 +90,10 @@ void ScheduleDAGRRList::Schedule() { // Build scheduling units. BuildSchedUnits(); - CalculateDepths(); - CalculateHeights(); DEBUG(for (unsigned su = 0, e = SUnits.size(); su != e; ++su) SUnits[su].dumpAll(&DAG)); + CalculateDepths(); + CalculateHeights(); AvailableQueue->initNodes(SUnits);