[llvm] [AMDGPU][SIInsertWaitcnts] Cleanup: Remove WaitEventMaskForInst member variable (PR #178030)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 28 08:28:03 PST 2026


================
@@ -3328,9 +3328,7 @@ bool SIInsertWaitcnts::run(MachineFunction &MF) {
   for (auto T : inst_counter_types())
     ForceEmitWaitcnt[T] = false;
 
-  WaitEventMaskForInst = WCG->getWaitEventMask();
-
-  SmemAccessCounter = eventCounter(WaitEventMaskForInst, SMEM_ACCESS);
+  SmemAccessCounter = eventCounter(WCG->getWaitEventMask(), SMEM_ACCESS);
----------------
vporpo wrote:

I am not sure we need the additional indirection here, we already have access to WCG, so we can get the mask directly from it.

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


More information about the llvm-commits mailing list