[llvm] 8e5b43c - [AMDGPU][NewPM] Have consistent property changes in GCNDPPCombine (#106520)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 2 22:32:54 PDT 2024
Author: Akshat Oke
Date: 2024-09-03T11:02:51+05:30
New Revision: 8e5b43c8effc0a01745bb7c53ca21fb6c8384c51
URL: https://github.com/llvm/llvm-project/commit/8e5b43c8effc0a01745bb7c53ca21fb6c8384c51
DIFF: https://github.com/llvm/llvm-project/commit/8e5b43c8effc0a01745bb7c53ca21fb6c8384c51.diff
LOG: [AMDGPU][NewPM] Have consistent property changes in GCNDPPCombine (#106520)
Added:
Modified:
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
index 3e1a79062ff0cc..833cd6dfa4ba2e 100644
--- a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
@@ -795,11 +795,11 @@ bool GCNDPPCombine::run(MachineFunction &MF) {
PreservedAnalyses GCNDPPCombinePass::run(MachineFunction &MF,
MachineFunctionAnalysisManager &) {
+ MFPropsModifier _(*this, MF);
+
if (MF.getFunction().hasOptNone())
return PreservedAnalyses::all();
- MFPropsModifier _(*this, MF);
-
bool Changed = GCNDPPCombine().run(MF);
if (!Changed)
return PreservedAnalyses::all();
More information about the llvm-commits
mailing list