Skip to content

Commit

Permalink
[Asm] Finish matching once end of formal and actual lists reached (NFC)
Browse files Browse the repository at this point in the history
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

llvm-svn: 318769
  • Loading branch information
ostannard committed Nov 21, 2017
1 parent 4acd57e commit 6e94331
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/TableGen/AsmMatcherEmitter.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit 6e94331

Please sign in to comment.