[TableGen] CodeGenDAGPatterns::GenerateVariants - use BitVector::set() where possible. NFCI.

In these cases we are always setting to true.

llvm-svn: 342543
This commit is contained in:
Simon Pilgrim 2018-09-19 12:23:50 +00:00
parent e5e1ea79fd
commit 6d70677937
1 changed files with 3 additions and 3 deletions

View File

@ -4498,8 +4498,8 @@ void CodeGenDAGPatterns::GenerateVariants() {
PatternsToMatch[i].getPredicates();
BitVector &Matches = MatchedPredicates[i];
MatchedPatterns[i] = true;
Matches[i] = true;
MatchedPatterns.set(i);
Matches.set(i);
// Don't test patterns that have already been cached - it won't match.
for (unsigned p = 0; p != NumOriginalPatterns; ++p)
@ -4509,7 +4509,7 @@ void CodeGenDAGPatterns::GenerateVariants() {
// Copy this to all the matching patterns.
for (int p = Matches.find_first(); p != -1; p = Matches.find_next(p))
if (p != (int)i) {
MatchedPatterns[p] = true;
MatchedPatterns.set(p);
MatchedPredicates[p] = Matches;
}
}