[llvm] [SelectionDAG] Add space-optimized forms of OPC_CheckComplexPat (PR #73310)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 03:59:48 PST 2024


================
@@ -652,8 +655,13 @@ EmitMatcher(const Matcher *N, const unsigned Indent, unsigned CurrentIdx,
   case Matcher::CheckComplexPat: {
     const CheckComplexPatMatcher *CCPM = cast<CheckComplexPatMatcher>(N);
     const ComplexPattern &Pattern = CCPM->getPattern();
-    OS << "OPC_CheckComplexPat, /*CP*/" << getComplexPat(Pattern) << ", /*#*/"
-       << CCPM->getMatchNumber() << ',';
+    unsigned PatternNo = getComplexPat(Pattern);
+    if (PatternNo < 8)
----------------
arsenm wrote:

Braces 

https://github.com/llvm/llvm-project/pull/73310


More information about the llvm-commits mailing list