[TableGen] Remove duplicate call to getPredicateCheck. NFC

This commit is contained in:
Craig Topper 2023-02-26 16:32:25 -08:00
parent 4bc6434624
commit 8869f301c5

View File

@ -585,8 +585,9 @@ bool MatcherGen::EmitMatcherCode(unsigned Variant) {
// If the pattern has a predicate on it (e.g. only enabled when a subtarget
// feature is around, do the check).
if (!Pattern.getPredicateCheck().empty())
AddMatcher(new CheckPatternPredicateMatcher(Pattern.getPredicateCheck()));
std::string PredicateCheck = Pattern.getPredicateCheck();
if (!PredicateCheck.empty())
AddMatcher(new CheckPatternPredicateMatcher(PredicateCheck));
// Now that we've completed the structural type match, emit any ComplexPattern
// checks (e.g. addrmode matches). We emit this after the structural match