[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:19 PST 2026
================
@@ -155,6 +167,8 @@ class X86SpeculativeLoadHardeningPass : public MachineFunctionPass {
: RC(RC), SSA(MF) {}
};
+ MachineFunction &MF;
----------------
boomanaiden154 wrote:
Given we're already passing around the machine function reference explicitly already, it's probably better to drop this as a class member and just pass it in directly to `run()`.
https://github.com/llvm/llvm-project/pull/175718
More information about the llvm-commits
mailing list