[llvm-branch-commits] [llvm] [AMDGPU][SIInsertWaitcnts][NFC] Implement obsolete() (PR #193384)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 22 07:23:29 PDT 2026
================
@@ -831,6 +833,9 @@ class WaitcntBrackets {
LB = std::max(LB, UB - Remaining);
}
void clear() { LB = UB; }
+ /// \returns true if \p Score is older than the first tracked score of
+ /// this counter.
+ bool obsolete(unsigned Score) const { return Score <= LB; }
----------------
arsenm wrote:
Obsolete doesn't seem like the right name for this
https://github.com/llvm/llvm-project/pull/193384
More information about the llvm-branch-commits
mailing list