diff options
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 3adcf70..28b17f7 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -98,15 +98,11 @@ cl::opt<bool> PrintDAGs("misched-print-dags", cl::Hidden, cl::opt<bool> MISchedDumpReservedCycles( "misched-dump-reserved-cycles", cl::Hidden, cl::init(false), cl::desc("Dump resource usage at schedule boundary.")); -cl::opt<bool> MischedDetailResourceBooking( - "misched-detail-resource-booking", cl::Hidden, cl::init(false), - cl::desc("Show details of invoking getNextResoufceCycle.")); #else const bool ViewMISchedDAGs = false; const bool PrintDAGs = false; #ifdef LLVM_ENABLE_DUMP const bool MISchedDumpReservedCycles = false; -const bool MischedDetailResourceBooking = false; #endif // LLVM_ENABLE_DUMP #endif // NDEBUG @@ -2318,11 +2314,7 @@ unsigned SchedBoundary::getNextResourceCycleByInstance(unsigned InstanceIdx, std::pair<unsigned, unsigned> SchedBoundary::getNextResourceCycle(const MCSchedClassDesc *SC, unsigned PIdx, unsigned Cycles, unsigned StartAtCycle) { - if (MischedDetailResourceBooking) { - LLVM_DEBUG(dbgs() << " Resource booking (@" << CurrCycle << "c): \n"); - LLVM_DEBUG(dumpReservedCycles()); - LLVM_DEBUG(dbgs() << " getNextResourceCycle (@" << CurrCycle << "c): \n"); - } + unsigned MinNextUnreserved = InvalidCycle; unsigned InstanceIdx = 0; unsigned StartIndex = ReservedCyclesIndex[PIdx]; @@ -2363,19 +2355,11 @@ SchedBoundary::getNextResourceCycle(const MCSchedClassDesc *SC, unsigned PIdx, ++I) { unsigned NextUnreserved = getNextResourceCycleByInstance(I, Cycles, StartAtCycle); - if (MischedDetailResourceBooking) - LLVM_DEBUG(dbgs() << " Instance " << I - StartIndex << " available @" - << NextUnreserved << "c\n"); if (MinNextUnreserved > NextUnreserved) { InstanceIdx = I; MinNextUnreserved = NextUnreserved; } } - if (MischedDetailResourceBooking) - LLVM_DEBUG(dbgs() << " selecting " << SchedModel->getResourceName(PIdx) - << "[" << InstanceIdx - StartIndex << "]" - << " available @" << MinNextUnreserved << "c" - << "\n"); return std::make_pair(MinNextUnreserved, InstanceIdx); } |