Index: llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp =================================================================== --- llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ llvm/trunk/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -1868,6 +1868,7 @@ BlockVisitedSet.clear(); VCCZBugHandledSet.clear(); LoopWaitcntDataMap.clear(); + BlockWaitcntProcessedSet.clear(); // Walk over the blocks in reverse post-dominator order, inserting // s_waitcnt where needed.