Landing: 991c35ee9745
Project / Subsystem
gcc / vect
Date
2026-05-27
Author
Tamar Christina
Commit
991c35ee974548156c01cb69f093694973468f51
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- vect
- patch_id
- —
- commit_hash
- 991c35ee974548156c01cb69f093694973468f51
- source_type
- github
- headline
- Vectorization: Refactor loop peeling for early exits.
- tldr
- Refactors loop peeling to handle early exits more explicitly, preparing for optimizations that avoid epilogues.
- author
- Tamar Christina
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • vectorization
- • loop peeling
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-27T00:00:00.000Z
This patch refactors loop peeling to better handle early exits during vectorization. This change is a preliminary step towards optimizing early break vectorization, where certain loops may not require an epilogue at all. The refactoring ensures that peeling gets an extra parameter to indicate how to handle multiple exits, and it improves the consistency of peeling between early break and uncounted loops. This makes the code more robust regarding needed optimizations.