summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegisterCoalescer.cpp
diff options
context:
space:
mode:
authorAkshat Oke <Akshat.Oke@amd.com>2025-01-31 11:45:55 +0530
committerGitHub <noreply@github.com>2025-01-31 11:45:55 +0530
commita5a2e2fc62824287aca02e80ce237c695ea89000 (patch)
tree93bac8b7e01bc7764482c6e4f769988fd56f59ef /llvm/lib/CodeGen/RegisterCoalescer.cpp
parent2941fa39410f7492aeaf73c90b92c3bfb7115044 (diff)
[CodeGen]RegisterCoalescer: Remove the print() method (#125042)
I saw that there used to be an overload `operator<<(OS, const Pass &P)`. Now that it's gone, I still don't find anyone using the print method except the internal debug printing hidden under `LLVM_DEBUG` in this function.
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterCoalescer.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 62c15949e46d..d2f7684ec83a 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -390,9 +390,6 @@ public:
/// This is the pass entry point.
bool runOnMachineFunction(MachineFunction &) override;
-
- /// Implement the dump method.
- void print(raw_ostream &O, const Module * = nullptr) const override;
};
} // end anonymous namespace
@@ -4344,12 +4341,8 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) {
PHIValToPos.clear();
RegToPHIIdx.clear();
- LLVM_DEBUG(dump());
+ LLVM_DEBUG(LIS->dump());
if (VerifyCoalescing)
MF->verify(this, "After register coalescing", &errs());
return true;
}
-
-void RegisterCoalescer::print(raw_ostream &O, const Module *m) const {
- LIS->print(O);
-}