Landing: 832a088e9259
Project / Subsystem
gcc / genopinit
Date
2026-08-09
Author
Kyrylo Tkachov
Commit
832a088e9259f4eeefb2856913ff2e146b5d1073
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- genopinit
- patch_id
- —
- commit_hash
- 832a088e9259f4eeefb2856913ff2e146b5d1073
- source_type
- github
- headline
- genopinit: Optimize optab pattern initialization by grouping conditions
- tldr
- genopinit: Reduces compilation time and code size by grouping optab patterns by availability.
- author
- Kyrylo Tkachov
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • genopinit
- • optimization
- • compilation speed
- • code size
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-09T00:00:00.000Z
The genopinit tool now groups optab patterns by their availability conditions, significantly reducing compilation time and code size for targets like aarch64 and riscv64. Instead of evaluating each HAVE_* macro individually, it now numbers distinct tests, maps patterns to these tests, and evaluates each test only once. This change dramatically cuts down on assignments and code bloat in init_all_optabs.