1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

[TableGen] CodeGenDAGPatterns::GenerateVariants - use BitVector::push_back()

As mentioned on D52236, this saves 10secs in debug builds of x86 -gen-dag-isel

llvm-svn: 342536
This commit is contained in:
Simon Pilgrim 2018-09-19 11:18:49 +00:00
parent 43e5ef164c
commit bee9d3738b

View File

@ -4552,9 +4552,8 @@ void CodeGenDAGPatterns::GenerateVariants() {
MatchedPredicates.push_back(Matches);
// Add a new match the same as this pattern.
unsigned NumPatterns = PatternsToMatch.size();
for (auto &P : MatchedPredicates)
P.resize(NumPatterns, P[i]);
P.push_back(P[i]);
}
LLVM_DEBUG(errs() << "\n");