Landing: 17ce6875a082
Project / Subsystem
gcc / tree-optimization
Date
2026-05-13
Author
Richard Biener
Commit
17ce6875a08253fb02580bd365a4528e9225efb9
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- tree-optimization
- patch_id
- —
- commit_hash
- 17ce6875a08253fb02580bd365a4528e9225efb9
- source_type
- github
- headline
- Preserve alignment of access during address forwarding.
- tldr
- GCC now preserves the alignment of memory accesses when forwarding addresses during tree optimization.
- author
- Richard Biener
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • alignment
- • tree-ssa
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-13T00:00:00.000Z
GCC’s tree-ssa-forwprop pass now preserves the alignment of memory accesses when forwarding addresses. This prevents the optimizer from picking up the alignment of parts of the forwarded address instead of the original access. A new test case, gcc.dg/pr125206.c, validates this fix.