[llvm] [AMDGPU] Make WaitcntBrackets::simplifyWaitcnt const again (PR #173390)
Nicolai Hähnle via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 2 11:48:28 PST 2026
================
@@ -1212,15 +1217,16 @@ void WaitcntBrackets::print(raw_ostream &OS) const {
/// Simplify the waitcnt, in the sense of removing redundant counts, and return
/// whether a waitcnt instruction is needed at all.
-void WaitcntBrackets::simplifyWaitcnt(AMDGPU::Waitcnt &Wait) {
- simplifyWaitcnt(LOAD_CNT, Wait.LoadCnt);
- simplifyWaitcnt(EXP_CNT, Wait.ExpCnt);
- simplifyWaitcnt(DS_CNT, Wait.DsCnt);
- simplifyWaitcnt(STORE_CNT, Wait.StoreCnt);
- simplifyWaitcnt(SAMPLE_CNT, Wait.SampleCnt);
- simplifyWaitcnt(BVH_CNT, Wait.BvhCnt);
- simplifyWaitcnt(KM_CNT, Wait.KmCnt);
- simplifyXcnt(Wait, Wait);
+void WaitcntBrackets::simplifyWaitcnt(const AMDGPU::Waitcnt &CheckWait,
----------------
nhaehnle wrote:
Please update the comment.
https://github.com/llvm/llvm-project/pull/173390
More information about the llvm-commits
mailing list