[llvm] AMDGPU/NewPM Port SILoadStoreOptimizer to NPM (PR #106362)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 00:37:50 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:

This should probably be before the optnone skip 

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


More information about the llvm-commits mailing list