[llvm] [AMDGPU] Clear load addresses between functions (PR #102515)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 11:16:01 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Alexis Engelke (aengelke)
<details>
<summary>Changes</summary>
SLoadAddresses previously held data across different functions and used these for dominance queries of blocks in different functions. This is not intended; clear the state at the end of the pass.
---
Full diff: https://github.com/llvm/llvm-project/pull/102515.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (+1)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 1315aa0855788..59a1eee8d4f91 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -2611,6 +2611,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) {
Modified = true;
}
ReleaseVGPRInsts.clear();
+ SLoadAddresses.clear();
return Modified;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/102515
More information about the llvm-commits
mailing list