Skip to content

Commit c230138

Browse files
committed
[SelectionDAG,TableGen] Use MapVector after #73310
Otherwise `ComplexPatternList` order can be non-deterministic.
1 parent 5e5e98e commit c230138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/DAGISelMatcherEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class MatcherTableEmitter {
8585
MatcherTableEmitter(const Matcher *TheMatcher, const CodeGenDAGPatterns &cgp)
8686
: CGP(cgp), OpcodeCounts(Matcher::HighestKind + 1, 0) {
8787
// Record the usage of ComplexPattern.
88-
DenseMap<const ComplexPattern *, unsigned> ComplexPatternUsage;
88+
MapVector<const ComplexPattern *, unsigned> ComplexPatternUsage;
8989
// Record the usage of PatternPredicate.
9090
std::map<StringRef, unsigned> PatternPredicateUsage;
9191

0 commit comments

Comments
 (0)