[AMDGPU] Fix bug with tracking processed blocks in SIInsertWaitcnts
authorScott Linder <scott@scottlinder.com>
Thu, 21 Jun 2018 18:48:48 +0000 (18:48 +0000)
committerScott Linder <scott@scottlinder.com>
Thu, 21 Jun 2018 18:48:48 +0000 (18:48 +0000)
commit5792dd0f391a57772c7603e14226b0a99032ad87
tree07294e1364907767e864f93fa49f3acc74f8eb7b
parent766c77efd7ec420583458d2f0726f42058109383
[AMDGPU] Fix bug with tracking processed blocks in SIInsertWaitcnts

BlockWaitcntProcessedSet was not being cleared between calls, so it was
producing incorrect counts in cases where MBB addresses happened to coincide
across multiple calls.

Differential Revision: https://reviews.llvm.org/D48391

llvm-svn: 335268
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp