Skip to content

[AMDGPU][NewPM] Have consistent property changes in GCNDPPCombine #106520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

optimisan
Copy link
Contributor

No description provided.

@optimisan optimisan marked this pull request as ready for review September 3, 2024 05:04
@optimisan optimisan requested a review from cdevadas September 3, 2024 05:05
@llvmbot
Copy link
Member

llvmbot commented Sep 3, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Akshat Oke (Akshat-Oke)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/106520.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp (+2-2)
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();

@optimisan optimisan merged commit 8e5b43c into llvm:main Sep 3, 2024
12 checks passed
@optimisan optimisan deleted the gcn-props branch September 3, 2024 05:32
qiaojbao pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Sep 30, 2024
…e7da32635

Local branch amd-gfx 3cfe7da Merged main:b6a4ab5a12c9ced0642769e4b2d8f77859541ba8 into amd-gfx:6ab9923b43c0
Remote branch main 8e5b43c [AMDGPU][NewPM] Have consistent property changes in GCNDPPCombine (llvm#106520)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants