Landing: 7eb6d800c9cc
Project / Subsystem
gcc / gcc
Date
2026-03-10
Author
Richard Biener
Commit
7eb6d800c9cc4ea79b108a22c56620587fbc0fb7
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 7eb6d800c9cc4ea79b108a22c56620587fbc0fb7
- source_type
- github
- headline
- Account scalar costs into vect_body.
- tldr
- GCC now records scalar statement costs as part of the vectorized loop body, ensuring accurate cost calculation for vectorization.
- author
- Richard Biener
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • vectorization
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-03-10T00:00:00.000Z
GCC’s vectorizer now records the cost of scalar statements as part of the vect_body, rather than the vect_prologue. This ensures that scalar_costs->body_cost () returns a non-zero value, leading to more accurate cost calculations during vectorization.