Landing: cf99490e7ebc
Project / Subsystem
gcc / vect
Date
2026-09-27
Author
Tamar Christina
Commit
cf99490e7ebcf72e3478454448dc265a32723240
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- vect
- patch_id
- —
- commit_hash
- cf99490e7ebcf72e3478454448dc265a32723240
- source_type
- github
- headline
- vect: Fix loop exit profiles with early break
- tldr
- Vectorizer now corrects inaccurate loop exit profile counts caused by early breaks.
- author
- Tamar Christina
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • vectorization
- • optimization
- • profile-guided optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-27T00:00:00.000Z
The vectorizer has been modified to correct inaccurate loop exit profile information that arises when loops terminate early due to a break statement. Previously, the vectorizer could introduce incorrect counts in the control flow graph, leading to suboptimal optimizations. This patch ensures the vectorizer itself fixes these profile inaccuracies, rather than relying on other passes. This improves the accuracy of profile-guided optimizations for loops with early exit conditions.