Skip to content

Commit a19bd2e

Browse files
dstuttIcohedron
authored andcommitted
[AMDGPU] - Fix non-deterministic compile issue (llvm#126271)
4ce1f9079d4d3 [AMDGPU] Allow rematerialization of instructions with virtual register uses (llvm#124327) made changes that require an ordered traversal of a DenseMap. Changing it to MapVector which respects insertion order.
1 parent 35d2363 commit a19bd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/GCNSchedStrategy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ class PreRARematStage : public GCNSchedStage {
442442

443443
// Map a trivially rematerializable def to a list of regions at MinOccupancy
444444
// that has the defined reg as a live-in.
445-
DenseMap<MachineInstr *, SmallVector<unsigned, 4>> RematDefToLiveInRegions;
445+
MapVector<MachineInstr *, SmallVector<unsigned, 4>> RematDefToLiveInRegions;
446446

447447
// Collect all trivially rematerializable VGPR instructions with a single def
448448
// and single use outside the defining block into RematerializableInsts.

0 commit comments

Comments
 (0)