[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
Tue Jun 16 19:53:51 PDT 2026


================
@@ -1878,7 +1813,7 @@ bool WaitcntGeneratorPreGFX12::createNewWaitcnt(
             continue;
 
           unsigned Outstanding = std::min(ScoreBrackets.getOutstanding(CT),
-                                          getWaitCountMax(getLimits(), CT) - 1);
+                                          getLimits().get(CT) - 1);
----------------
ssahasra wrote:

Eliminate this repetition too, with a `getLimit(blah)`?

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


More information about the llvm-branch-commits mailing list