[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Drop MaxCounter member variable (PR #181092)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 17 00:47:35 PST 2026
================
@@ -2998,8 +3004,10 @@ bool WaitcntBrackets::mergeAsyncMarks(ArrayRef<MergeInfo> MergeInfos,
unsigned OurSize = AsyncMarks.size();
unsigned MergeCount = std::min(OtherSize, OurSize);
assert(OurSize == MaxSize);
+ const InstCounterType MaxCounter =
+ getMaxCounter(*Context->ST, Context->IsExpertMode);
----------------
ssahasra wrote:
Looks like everything that this function needs is coming from Context. Then you might as well move this function itself to Context.
https://github.com/llvm/llvm-project/pull/181092
More information about the llvm-commits
mailing list