Landing: 1bf4a46e9b5c
Project / Subsystem
gcc / tree-ssa
Date
2026-05-28
Author
Roger Sayle
Commit
1bf4a46e9b5c2253afba434895e071ed0e95fc93
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- tree-ssa
- patch_id
- —
- commit_hash
- 1bf4a46e9b5c2253afba434895e071ed0e95fc93
- source_type
- github
- headline
- SSA Loop Optimizations: Store Motion Gets More Efficient
- tldr
- Refactors loop store motion code in GCC to avoid redundant checks and reduce memory usage.
- author
- Roger Sayle
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • ssa
- • loop
- • store motion
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-28T00:00:00.000Z
The loop store motion pass in GCC’s tree-ssa optimizer has been micro-optimized. The ref_always_accessed_p function was refactored and renamed to ref_always_stored_p, saving storage and avoiding redundant checks at runtime. This tightens up the loop invariant code motion pass, which hoists stores that are loop-invariant out of the loop, improving performance.