mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[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
This commit is contained in:
parent
1ba54fc164
commit
a83da62375
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user