[llvm] [CodeGen][NewPM] Port "PostRAMachineSink" pass to NPM (PR #129690)

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 5 02:13:35 PST 2025


================
@@ -2390,7 +2390,5 @@ PostRAMachineSinkingPass::run(MachineFunction &MF,
   if (!PostRAMachineSinkingImpl().run(MF))
     return PreservedAnalyses::all();
 
-  auto PA = getMachineFunctionPassPreservedAnalyses();
-  PA.preserveSet<CFGAnalyses>();
-  return PA;
+  return getMachineFunctionPassPreservedAnalyses().preserveSet<CFGAnalyses>();
----------------
vikramRH wrote:

I think its better being consistent in what we do, I like this and probably could follow this from now on.

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


More information about the llvm-commits mailing list