Landing: f4d579b7a2ac
Project / Subsystem
gcc / genattrtab
Date
2026-08-07
Author
Kyrylo Tkachov
Commit
f4d579b7a2ace16c9b0b7912940ff6809f8ddf9c
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- genattrtab
- patch_id
- —
- commit_hash
- f4d579b7a2ace16c9b0b7912940ff6809f8ddf9c
- source_type
- github
- headline
- genattrtab: Table-drives attributes defined by other attributes
- tldr
- Improves genattrtab by generating more efficient code for attributes derived from others.
- author
- Kyrylo Tkachov
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • genattrtab
- • optimization
- • code generation
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-07T00:00:00.000Z
This commit enhances genattrtab to generate more efficient code for machine attributes that are directly defined as functions of other attributes. Previously, such definitions were expanded and evaluated repeatedly for each instruction. The new approach directly represents these functional relationships, similar to how run-time evaluated attributes are handled, leading to more optimized generated code and reducing redundancy in attribute lookup tables.