diff options
author | Jay Foad <jay.foad@amd.com> | 2025-07-23 11:36:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-23 11:36:49 +0100 |
commit | d449d3dc13daff388cbf6a7bb910e0511804eb84 (patch) | |
tree | 3723d9987211213d459302499a01a78f54fae6b9 /llvm/lib/CodeGen/MachineInstrBundle.cpp | |
parent | 756ac65987b84b7427c25d76f069a04a4a817a5c (diff) | |
download | llvm-d449d3dc13daff388cbf6a7bb910e0511804eb84.zip llvm-d449d3dc13daff388cbf6a7bb910e0511804eb84.tar.gz llvm-d449d3dc13daff388cbf6a7bb910e0511804eb84.tar.bz2 |
[CodeGen] Remove FinalizeMachineBundles pass (#149806)
Replace its only use in the AMDGPU R600 backend with a call to
finalizeBundles.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstrBundle.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstrBundle.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/CodeGen/MachineInstrBundle.cpp b/llvm/lib/CodeGen/MachineInstrBundle.cpp index 44b648a..4da0184 100644 --- a/llvm/lib/CodeGen/MachineInstrBundle.cpp +++ b/llvm/lib/CodeGen/MachineInstrBundle.cpp @@ -83,27 +83,6 @@ llvm::createUnpackMachineBundles( return new UnpackMachineBundles(std::move(Ftor)); } -namespace { - class FinalizeMachineBundles : public MachineFunctionPass { - public: - static char ID; // Pass identification - FinalizeMachineBundles() : MachineFunctionPass(ID) { - initializeFinalizeMachineBundlesPass(*PassRegistry::getPassRegistry()); - } - - bool runOnMachineFunction(MachineFunction &MF) override; - }; -} // end anonymous namespace - -char FinalizeMachineBundles::ID = 0; -char &llvm::FinalizeMachineBundlesID = FinalizeMachineBundles::ID; -INITIALIZE_PASS(FinalizeMachineBundles, "finalize-mi-bundles", - "Finalize machine instruction bundles", false, false) - -bool FinalizeMachineBundles::runOnMachineFunction(MachineFunction &MF) { - return llvm::finalizeBundles(MF); -} - /// Return the first found DebugLoc that has a DILocation, given a range of /// instructions. The search range is from FirstMI to LastMI (exclusive). If no /// DILocation is found, then an empty location is returned. |