[llvm] r318769 - [Asm] Finish matching once end of formal and actual lists reached (NFC)
Oliver Stannard via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 07:12:05 PST 2017
Author: olista01
Date: Tue Nov 21 07:12:05 2017
New Revision: 318769
URL: http://llvm.org/viewvc/llvm-project?rev=318769&view=rev
Log:
[Asm] Finish matching once end of formal and actual lists reached (NFC)
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.
Differential revision: https://reviews.llvm.org/D36744
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=318769&r1=318768&r2=318769&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Tue Nov 21 07:12:05 2017
@@ -3323,6 +3323,7 @@ void AsmMatcherEmitter::run(raw_ostream
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 {
More information about the llvm-commits
mailing list