Landing: 38370907dce4
Project / Subsystem
gcc / gcc
Date
2026-09-23
Author
Richard Biener
Commit
38370907dce41bd170cf37d864d6ddc9ca3a9652
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 38370907dce41bd170cf37d864d6ddc9ca3a9652
- source_type
- github
- headline
- Adjust scalar_to_vec for invariant loads
- tldr
- Fixes incorrect cost estimation for non-uniform invariant loads in vectorization.
- author
- Richard Biener
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gcc
- • optimization
- • vectorization
- • performance
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-23T00:00:00.000Z
This commit corrects the cost estimation for vectorizable loads in GCC’s tree-vectorizer. Previously, non-uniform invariant loads were costed incorrectly, and scalar_to_vec was inappropriately used for non-splat loads. The fix ensures more accurate cost analysis and utilizes vec_construct for non-splat loads, improving vectorization efficiency.