Skip to content

Commit 8e5b43c

Browse files
authored
[AMDGPU][NewPM] Have consistent property changes in GCNDPPCombine (#106520)
1 parent 0421049 commit 8e5b43c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,11 @@ bool GCNDPPCombine::run(MachineFunction &MF) {
795795

796796
PreservedAnalyses GCNDPPCombinePass::run(MachineFunction &MF,
797797
MachineFunctionAnalysisManager &) {
798+
MFPropsModifier _(*this, MF);
799+
798800
if (MF.getFunction().hasOptNone())
799801
return PreservedAnalyses::all();
800802

801-
MFPropsModifier _(*this, MF);
802-
803803
bool Changed = GCNDPPCombine().run(MF);
804804
if (!Changed)
805805
return PreservedAnalyses::all();

0 commit comments

Comments
 (0)