[all-commits] [llvm/llvm-project] a8af62: [RISCV] Use switches for opcode checks in RISCVIns...
Luke Lau via All-commits
all-commits at lists.llvm.org
Wed Sep 23 06:01:00 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8af62d00b82c9226cca3b4abdf376158f6bde53
https://github.com/llvm/llvm-project/commit/a8af62d00b82c9226cca3b4abdf376158f6bde53
Author: Luke Lau <luke at igalia.com>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M llvm/lib/Target/RISCV/RISCVInstrPredicates.td
Log Message:
-----------
[RISCV] Use switches for opcode checks in RISCVInstrPredicates.td. NFC (#225695)
CheckOpcode expands out to a linear search which is slow when there's
lots of opcodes in the list. Using a switch statement allows a jump
table to be emitted which improves compile time, since these predicates
are hammered quite frequently.
Measured to reduce geomean -1.15% instructions retired on CTMark w/ a
stage2 rva23u64 -O3 Clang build.
Assisted-By: Opus 5.5
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