[llvm] AMDGPU/NewPM Port SILoadStoreOptimizer to NPM (PR #106362)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 02:12:40 PDT 2024
================
@@ -2571,3 +2580,24 @@ bool SILoadStoreOptimizer::runOnMachineFunction(MachineFunction &MF) {
return Modified;
}
+
+PreservedAnalyses
+SILoadStoreOptimizerPass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM) {
+ if (MF.getFunction().hasOptNone())
+ return PreservedAnalyses::all();
+
+ MFPropsModifier _(*this, MF);
----------------
arsenm wrote:
Yes, but in terms of property changes I would expect the pass to always behave the same way
https://github.com/llvm/llvm-project/pull/106362
More information about the llvm-commits
mailing list