Skip to content

Commit f5987e8

Browse files
jayfoadSterling-Augustine
authored andcommitted
[AMDGPU] Remember to clear a DenseMap between runs of SIInsertWaitcnts (llvm#110650)
This caused nondeterministic codegen in some cases.
1 parent 6bc7308 commit f5987e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,6 +2620,7 @@ bool SIInsertWaitcnts::runOnMachineFunction(MachineFunction &MF) {
26202620
Modified = true;
26212621
}
26222622
ReleaseVGPRInsts.clear();
2623+
PreheadersToFlush.clear();
26232624
SLoadAddresses.clear();
26242625

26252626
return Modified;

0 commit comments

Comments
 (0)