[llvm] [AMDGPU][InsertWaitCnts] Make HWEvent a BitMask (PR #203864)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 01:09:21 PDT 2026


================
@@ -746,7 +746,7 @@ class WaitcntBrackets {
 
   unsigned ScoreLBs[AMDGPU::NUM_INST_CNTS] = {0};
   unsigned ScoreUBs[AMDGPU::NUM_INST_CNTS] = {0};
-  HWEventSet PendingEvents;
+  HWEvents PendingEvents = HWEvents::NONE;
----------------
ssahasra wrote:

The lone value member of the class is initialized to NONE in the class definition itself, so this explicit initialization shouldn't be necessary.

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


More information about the llvm-commits mailing list