HomePhabricator

[AMDGPU] Fix bug with tracking processed blocks in SIInsertWaitcnts

Authored by scott.linder on Jun 21 2018, 11:48 AM.

Description

[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