diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp index fb24d528c338..7f7509893760 100644 --- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -1868,6 +1868,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) { BlockVisitedSet.clear(); VCCZBugHandledSet.clear(); LoopWaitcntDataMap.clear(); + BlockWaitcntProcessedSet.clear(); // Walk over the blocks in reverse post-dominator order, inserting // s_waitcnt where needed.