diff options
author | Francesco Petrogalli <francesco.petrogalli@apple.com> | 2023-01-13 11:12:15 +0100 |
---|---|---|
committer | Francesco Petrogalli <francesco.petrogalli@apple.com> | 2023-01-13 11:14:20 +0100 |
commit | df6ae1779fafd9984e144a27315d6dd65b32c325 (patch) | |
tree | 2ddf208a1912ce6fcf49d3a40d11470693b068de /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 54592694eb505a529fb61741ea2cb4eb45e7da4b (diff) | |
download | llvm-df6ae1779fafd9984e144a27315d6dd65b32c325.zip llvm-df6ae1779fafd9984e144a27315d6dd65b32c325.tar.gz llvm-df6ae1779fafd9984e144a27315d6dd65b32c325.tar.bz2 |
Revert "[SchedBoundary] Add dump method for resource usage."
Reverting because of https://lab.llvm.org/buildbot#builders/16/builds/41860
When building on x86, I need to specify also -mtriple in the
invocation of llc otherwise the folllowing error shows up:
'cortex-a55' is not a recognized processor for this target (ignoring processor)
This reverts commit b39a9a94f420a25a239ae03097c255900cbd660e.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index e8c9562..e5cd462 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -95,9 +95,6 @@ cl::opt<bool> ViewMISchedDAGs( cl::desc("Pop up a window to show MISched dags after they are processed")); cl::opt<bool> PrintDAGs("misched-print-dags", cl::Hidden, cl::desc("Print schedule DAGs")); -cl::opt<bool> MISchedDumpReservedCycles( - "misched-dump-reserved-cycles", cl::Hidden, cl::init(false), - cl::desc("Dump resource usage at schedule boundary.")); #else const bool ViewMISchedDAGs = false; const bool PrintDAGs = false; @@ -2592,28 +2589,6 @@ SUnit *SchedBoundary::pickOnlyChoice() { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) - -/// Dump the content of the \ref ReservedCycles vector for the -/// resources that are used in the basic block. -/// -LLVM_DUMP_METHOD void SchedBoundary::dumpReservedCycles() const { - if (!SchedModel->hasInstrSchedModel()) - return; - - unsigned ResourceCount = SchedModel->getNumProcResourceKinds(); - unsigned StartIdx = 0; - - for (unsigned ResIdx = 0; ResIdx < ResourceCount; ++ResIdx) { - const unsigned NumUnits = SchedModel->getProcResource(ResIdx)->NumUnits; - std::string ResName = SchedModel->getResourceName(ResIdx); - for (unsigned UnitIdx = 0; UnitIdx < NumUnits; ++UnitIdx) { - dbgs() << ResName << "(" << UnitIdx - << ") = " << ReservedCycles[StartIdx + UnitIdx] << "\n"; - } - StartIdx += NumUnits; - } -} - // This is useful information to dump after bumpNode. // Note that the Queue contents are more useful before pickNodeFromQueue. LLVM_DUMP_METHOD void SchedBoundary::dumpScheduledState() const { @@ -2636,8 +2611,6 @@ LLVM_DUMP_METHOD void SchedBoundary::dumpScheduledState() const { << "\n ExpectedLatency: " << ExpectedLatency << "c\n" << (IsResourceLimited ? " - Resource" : " - Latency") << " limited.\n"; - if (MISchedDumpReservedCycles) - dumpReservedCycles(); } #endif |