Landing: bba0342a571a
Project / Subsystem
gcc / xtensa
Date
2026-05-04
Author
Takayuki 'January June' Suwa
Commit
bba0342a571a7860365720e0204a596128e7854d
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- xtensa
- patch_id
- —
- commit_hash
- bba0342a571a7860365720e0204a596128e7854d
- source_type
- github
- headline
- xtensa: Improve address legitimation for wider memory accesses.
- tldr
- Improves code generation for Xtensa by allowing larger displacements for memory accesses wider than 1 byte.
- author
- Takayuki 'January June' Suwa
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • xtensa
- • code generation
- • optimization
- • addressing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-04T00:00:00.000Z
This commit improves the Xtensa code generator by allowing it to utilize the full displacement range available for load/store instructions when accessing memory locations wider than 1 byte. Previously, the maximum displacement was limited to 255 bytes regardless of the access size. This change enables the compiler to generate more efficient code for accesses to short and int arrays, potentially reducing the number of instructions required.