[llvm] AMDGPU/NewPM Port GCNDPPCombine to NPM (PR #105816)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 06:57:58 PDT 2024
================
@@ -781,3 +792,14 @@ bool GCNDPPCombine::runOnMachineFunction(MachineFunction &MF) {
}
return Changed;
}
+
+PreservedAnalyses GCNDPPCombinePass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &) {
----------------
cdevadas wrote:
Add the following to skip this pass for OptNone cases.
if (MF.getFunction().hasOptNone())
return false;
https://github.com/llvm/llvm-project/pull/105816
More information about the llvm-commits
mailing list