[llvm-branch-commits] [llvm] [NFC][AMDGPU][InsertWaitCnts] Move some simple functions into Utils (PR #202936)

Sameer Sahasrabuddhe via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 10 21:59:25 PDT 2026


================
@@ -701,7 +666,7 @@ class WaitcntBrackets {
 
   unsigned getPendingGDSWait() const {
     return std::min(getScoreUB(AMDGPU::DS_CNT) - LastGDS,
-                    getWaitCountMax(Context->getLimits(), AMDGPU::DS_CNT) - 1);
+                    Context->getLimits().get(AMDGPU::DS_CNT) - 1);
----------------
ssahasra wrote:

`Context->getLimits().get()` seems to be a pattern repeated quite often. Why not put it inside a wrapper `Context->getLimit()`?

https://github.com/llvm/llvm-project/pull/202936


More information about the llvm-branch-commits mailing list