[all-commits] [llvm/llvm-project] 4986a7: [TableGen] Emit `llvm::is_contained` for `CheckOpc...
Pengcheng Wang via All-commits
all-commits at lists.llvm.org
Wed Apr 2 20:11:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4986a7964858979d00f0c9a98d13db555d8a6f0d
https://github.com/llvm/llvm-project/commit/4986a7964858979d00f0c9a98d13db555d8a6f0d
Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
Date: 2025-04-03 (Thu, 03 Apr 2025)
Changed paths:
M llvm/test/TableGen/MacroFusion.td
M llvm/utils/TableGen/Common/PredicateExpander.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list