Skip to content

[AMDGPU] Remember to clear a DenseMap between runs of SIInsertWaitcnts #110650

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
Oct 2, 2024

Conversation

jayfoad
Copy link
Contributor

@jayfoad jayfoad commented Oct 1, 2024

This caused nondeterministic codegen in some cases.

This caused nondeterministic codegen in some cases.
@llvmbot
Copy link
Member

llvmbot commented Oct 1, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Jay Foad (jayfoad)

Changes

This caused nondeterministic codegen in some cases.


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

1 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (+1)
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 80a7529002ac90..b2cfc3f3172564 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -2598,6 +2598,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) {
     Modified = true;
   }
   ReleaseVGPRInsts.clear();
+  PreheadersToFlush.clear();
   SLoadAddresses.clear();
 
   return Modified;

@jayfoad jayfoad merged commit e64ef74 into llvm:main Oct 2, 2024
10 checks passed
@jayfoad jayfoad deleted the siinsertwaitcnts-nondeterminism branch October 2, 2024 09:08
Sterling-Augustine pushed a commit to Sterling-Augustine/llvm-project that referenced this pull request Oct 3, 2024
qiaojbao pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Oct 31, 2024
This includes a cherry-pick of llvm#110650
This includes a cherry-pick of llvm#110818

Change-Id: I95b223ab1eb575465d96502b2cf69b95f994ad8a
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