diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 947504af2ad7a0f88ac7bc8832a43fc6dff88c0b..ad9bfefd2f39139138f8d75daeefdd965f6a37e7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/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/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 28dc8684d95a6183c0509bc781b6f82de2d3e3a5..ad98383220288d988515a817d0e6c17b2851ec71 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/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);