[llvm] AMDGPU/NewPM Port GCNDPPCombine to NPM (PR #105816)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 02:50:34 PDT 2024
================
@@ -749,9 +752,17 @@ bool GCNDPPCombine::combineDPPMov(MachineInstr &MovMI) const {
return !Rollback;
}
-bool GCNDPPCombine::runOnMachineFunction(MachineFunction &MF) {
+bool GCNDPPCombineLegacy::runOnMachineFunction(MachineFunction &MF) {
+ if (skipFunction(MF.getFunction())) {
+ return false;
+ }
+ GCNDPPCombine Impl;
+ return Impl.run(MF);
----------------
cdevadas wrote:
```suggestion
return GCNDPPCombine().run(MF);
```
https://github.com/llvm/llvm-project/pull/105816
More information about the llvm-commits
mailing list