[llvm] [NewPM] Extract logic for X86 SLH into a separate class (PR #175718)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 13 08:12:18 PST 2026


================
@@ -211,6 +225,18 @@ class X86SpeculativeLoadHardeningPass : public MachineFunctionPass {
 
 } // end anonymous namespace
 
+bool X86SpeculativeLoadHardeningPass::runOnMachineFunction(
+    MachineFunction &MF) {
+  LLVM_DEBUG(dbgs() << "********** " << getPassName() << " : " << MF.getName()
----------------
boomanaiden154 wrote:

You should probably pull the debug lines into the implementation's `run` method so that we don't accidentally drop the debug logging in the new pass manager.

https://github.com/llvm/llvm-project/pull/175718


More information about the llvm-commits mailing list