================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to