Landing: c3526f491acd
Project / Subsystem
gcc / risc-v
Date
2026-08-04
Author
Robin Dapp
Commit
c3526f491acd55c7da21a980d928826e2be51001
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- c3526f491acd55c7da21a980d928826e2be51001
- source_type
- github
- headline
- RISC-V: Avoid synthesizing vector constants.
- tldr
- RISC-V vector constants are now loaded from memory instead of being synthesized.
- author
- Robin Dapp
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • vector extensions
- • optimization
- • constant pool
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-04T00:00:00.000Z
This commit optimizes the handling of known-length vector constants on RISC-V by loading them directly from the constant pool instead of synthesizing them using multiple operations. This change addresses a performance issue where a redundant constant was being used, improving efficiency and reducing code size.