diff options
author | Oliver Stannard <oliver.stannard@arm.com> | 2017-11-21 15:12:05 +0000 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@arm.com> | 2017-11-21 15:12:05 +0000 |
commit | 175246cb2c07ef9344dbb4a8d0ab569c44e9aa87 (patch) | |
tree | eeb18f59805c699416e4dbf986e6f3f646c18805 /utils/TableGen | |
parent | b181279f89b06eeb9d33bb80f0664b8b632966a0 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/AsmMatcherEmitter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index d279e8c3ae9..4fe060b05fa 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -3323,6 +3323,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) { 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 { |