From 6d7067793755b5e24dba3ccd23c23087214f424b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 19 Sep 2018 12:23:50 +0000 Subject: [PATCH] [TableGen] CodeGenDAGPatterns::GenerateVariants - use BitVector::set() where possible. NFCI. In these cases we are always setting to true. llvm-svn: 342543 --- llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 52a83100b831..4a409f173d60 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -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; } }