llvm-project
4986a796 - [TableGen] Emit `llvm::is_contained` for `CheckOpcode` predicate (#134057)

Commit
312 days ago
[TableGen] Emit `llvm::is_contained` for `CheckOpcode` predicate (#134057) When the list is large, using `llvm::is_contained` is of higher performance than a sequence of comparisons. When the list is small, the `llvm::is_contained` can be inlined and unrolled, which has the same effect as using a sequence of comparisons. And the generated code is more readable.
Author
Parents
Loading