Skip to content

Commit fd4a62c

Browse files
authored
Merge pull request #5287 from akyrtzi/pr/stable/fix-non-deterministic-output
[stable] Cherry-pick upstream fix for non-deterministic output
2 parents 2590182 + fc4a9aa commit fd4a62c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@ static Optional<bool>
30003000
FoldCondBranchOnValueKnownInPredecessorImpl(BranchInst *BI, DomTreeUpdater *DTU,
30013001
const DataLayout &DL,
30023002
AssumptionCache *AC) {
3003-
SmallDenseMap<BasicBlock *, ConstantInt *> KnownValues;
3003+
SmallMapVector<BasicBlock *, ConstantInt *, 8> KnownValues;
30043004
BasicBlock *BB = BI->getParent();
30053005
Value *Cond = BI->getCondition();
30063006
PHINode *PN = dyn_cast<PHINode>(Cond);

0 commit comments

Comments
 (0)