Skip to content

Commit 3608e18

Browse files
committed
[DSE] Use MapVector for IOLs
I'm not sure whether this can cause any actual non-determinism, but at least it makes the DSE debug log non-deterministic, which makes it harder to debug other non-determinism issues.
1 parent f9a4d9a commit 3608e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ struct DSEState {
812812

813813
/// Keep track of instructions (partly) overlapping with killing MemoryDefs per
814814
/// basic block.
815-
DenseMap<BasicBlock *, InstOverlapIntervalsTy> IOLs;
815+
MapVector<BasicBlock *, InstOverlapIntervalsTy> IOLs;
816816

817817
// Class contains self-reference, make sure it's not copied/moved.
818818
DSEState(const DSEState &) = delete;

0 commit comments

Comments
 (0)