[llvm-branch-commits] [llvm] [AMDGPU][SIInsertWaitCnts] Remove VMemTypes (PR #206440)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 29 02:28:35 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- llvm/lib/Target/AMDGPU/AMDGPUHWEvents.cpp llvm/lib/Target/AMDGPU/AMDGPUHWEvents.h llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 09a10bccc..c49666660 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -737,10 +737,13 @@ private:
struct VMEMInfo {
// Scores for all instruction counters. Zero-initialized.
CounterValueArray Scores{};
- // For VGPRs, we need to track an additional fine-grained set of pending events.
+ // For VGPRs, we need to track an additional fine-grained set of pending
+ // events.
HWEvents VGPRPendingEvents;
- bool empty() const { return all_of(Scores, equal_to(0)) && !VGPRPendingEvents; }
+ bool empty() const {
+ return all_of(Scores, equal_to(0)) && !VGPRPendingEvents;
+ }
};
/// Wait cnt scores for every sgpr, the DS_CNT (corresponding to LGKMcnt
@@ -2827,7 +2830,8 @@ bool WaitcntBrackets::merge(const WaitcntBrackets &Other) {
for (auto &[TID, Info] : VMem) {
if (auto It = Other.VMem.find(TID); It != Other.VMem.end()) {
- HWEvents NewVGPRContext = Info.VGPRPendingEvents | It->second.VGPRPendingEvents;
+ HWEvents NewVGPRContext =
+ Info.VGPRPendingEvents | It->second.VGPRPendingEvents;
StrictDom |= NewVGPRContext != Info.VGPRPendingEvents;
Info.VGPRPendingEvents = NewVGPRContext;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/206440
More information about the llvm-branch-commits
mailing list