forked from OSchip/llvm-project
[TableGen] Avoid self getPredicates() != comparison. NFCI.
We were performing a completely unnecessary full comparison of the same std::vector<Predicate>. llvm-svn: 339888
This commit is contained in:
parent
c05c7e11bb
commit
f19cdc6127
|
@ -4483,8 +4483,8 @@ void CodeGenDAGPatterns::GenerateVariants() {
|
|||
bool AlreadyExists = false;
|
||||
for (unsigned p = 0, e = PatternsToMatch.size(); p != e; ++p) {
|
||||
// Skip if the top level predicates do not match.
|
||||
if (PatternsToMatch[i].getPredicates() !=
|
||||
PatternsToMatch[p].getPredicates())
|
||||
if ((i != p) && (PatternsToMatch[i].getPredicates() !=
|
||||
PatternsToMatch[p].getPredicates()))
|
||||
continue;
|
||||
// Check to see if this variant already exists.
|
||||
if (Variant->isIsomorphicTo(PatternsToMatch[p].getSrcPattern(),
|
||||
|
|
Loading…
Reference in New Issue