[llvm] [TableGen] Emit `llvm::is_contained` when CheckOpcode accepts a large list (PR #134057)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 2 02:50:42 PDT 2025
================
@@ -152,6 +152,18 @@ void PredicateExpander::expandCheckOpcode(raw_ostream &OS,
return;
}
+ if (Opcodes.size() >= 8) {
----------------
arsenm wrote:
Is this an experimentally determined number? Does it hurt to just always do this?
https://github.com/llvm/llvm-project/pull/134057
More information about the llvm-commits
mailing list