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:
parent
43e5ef164c
commit
bee9d3738b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user