Skip to content

Commit e64ef74

Browse files
authored
[AMDGPU] Remember to clear a DenseMap between runs of SIInsertWaitcnts (#110650)
This caused nondeterministic codegen in some cases.
1 parent 95f00a6 commit e64ef74

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)