[llvm] AMDGPU/NewPM: Port SIFoldOperands to new pass manager (PR #105801)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 02:36:24 PDT 2024
================
@@ -2246,3 +2254,15 @@ bool SIFoldOperands::runOnMachineFunction(MachineFunction &MF) {
return Changed;
}
+
+PreservedAnalyses SIFoldOperandsPass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &) {
+ SIFoldOperandsImpl Impl;
+ bool Changed = Impl.run(MF);
----------------
cdevadas wrote:
```suggestion
bool Changed = SIFoldOperandsImpl().run(MF);
```
https://github.com/llvm/llvm-project/pull/105801
More information about the llvm-commits
mailing list