[all-commits] [llvm/llvm-project] 7dbdb6: [TableGen] Avoid field lookup in a performance cri...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Mon Aug 25 08:48:09 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7dbdb66a5d2ee1496a2660ddc5a068a821842871
https://github.com/llvm/llvm-project/commit/7dbdb66a5d2ee1496a2660ddc5a068a821842871
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2025-08-25 (Mon, 25 Aug 2025)
Changed paths:
M llvm/utils/TableGen/Common/CodeGenTarget.cpp
Log Message:
-----------
[TableGen] Avoid field lookup in a performance critical place (NFC) (#154871)
`Target.getInstructions()` is called by virtually all TableGen backends.
It is slow, and one of the two factors is the use of an expensive
predicate in `llvm::sort`. This change speeds up sorting by 10x.
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