Landing: 6ae711942f34
Project / Subsystem
gcc / gcc/tree-optimization
Date
2026-07-27
Author
Richard Biener
Commit
6ae711942f345e3b6e149431e5ce4eff9162835b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/tree-optimization
- patch_id
- —
- commit_hash
- 6ae711942f345e3b6e149431e5ce4eff9162835b
- source_type
- github
- headline
- Fix fold-left reduction check for vector types.
- tldr
- Correctly checks vector lane count for fold-left reduction, preventing incorrect checks.
- author
- Richard Biener
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gcc
- • optimization
- • vectorization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-27T00:00:00.000Z
This commit corrects a bug in the vectorization pass where the code was checking the vector type instead of the number of lanes for fold-left reduction. This change ensures the correct number of lanes is considered, preventing unnecessary or incorrect reduction handling. A new test case has also been added to verify this fix.