[PATCH] D36744: [Asm] Finish matching once end of formal and actual lists reached (NFC)
Oliver Stannard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 08:20:48 PDT 2017
olista01 created this revision.
This is NFC, as the matcher would continue looping up to the maximum
number of operands with no effect, but this should improve performance a
bit, and makes the debug trace clearer.
Repository:
rL LLVM
https://reviews.llvm.org/D36744
Files:
utils/TableGen/AsmMatcherEmitter.cpp
Index: utils/TableGen/AsmMatcherEmitter.cpp
===================================================================
--- utils/TableGen/AsmMatcherEmitter.cpp
+++ utils/TableGen/AsmMatcherEmitter.cpp
@@ -3306,6 +3306,7 @@
OS << " }\n";
OS << " } else {\n";
OS << " DEBUG_WITH_TYPE(\"asm-matcher\", dbgs() << \"but formal operand not required\\n\");\n";
+ OS << " break;\n";
OS << " }\n";
OS << " continue;\n";
} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36744.111170.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170815/e02f20c7/attachment.bin>
More information about the llvm-commits
mailing list