diff options
author | Francesco Petrogalli <francesco.petrogalli@apple.com> | 2023-06-20 11:28:45 +0200 |
---|---|---|
committer | Francesco Petrogalli <francesco.petrogalli@apple.com> | 2023-06-20 11:28:45 +0200 |
commit | 25f8b1a0a812717ecf095761dd6c7d6601408a1c (patch) | |
tree | 06bbff671bcd446fe97ad83499d279586d462746 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | fc06262c1c365777e71207b6a5de281cba927c96 (diff) | |
download | llvm-25f8b1a0a812717ecf095761dd6c7d6601408a1c.zip llvm-25f8b1a0a812717ecf095761dd6c7d6601408a1c.tar.gz llvm-25f8b1a0a812717ecf095761dd6c7d6601408a1c.tar.bz2 |
Revert "[llc][MISched] Add `-misched-detail-resource-booking` to llc."
Reverting because of https://lab.llvm.org/buildbot#builders/75/builds/32485:
llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:2374:7: error: use of undeclared identifier 'MischedDetailResourceBooking'
if (MischedDetailResourceBooking)
This reverts commit fc06262c1c365777e71207b6a5de281cba927c96.
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); } |