[llvm] [CodeGen][NewPM] Port "PostRAMachineSink" pass to NPM (PR #129690)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 5 02:51:55 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>();
----------------
arsenm wrote:
I'd rather just keep the temporary variable (with no auto too)
https://github.com/llvm/llvm-project/pull/129690
More information about the llvm-commits
mailing list