Landing: 439cd07b5167
Project / Subsystem
gcc / tree-optimization
Date
2026-09-02
Author
Richard Biener
Commit
439cd07b51676996889b1277afd46c1053d24ebc
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- tree-optimization
- patch_id
- —
- commit_hash
- 439cd07b51676996889b1277afd46c1053d24ebc
- source_type
- github
- headline
- ICE in vectorizable_lane_reducing fixed by handling analysis failure.
- tldr
- Fixes an internal compiler error by properly handling failures in vectorization analysis for lane-reducing operations.
- author
- Richard Biener
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • vectorization
- • ICE
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-02T00:00:00.000Z
This commit resolves an Internal Compiler Error (ICE) that occurred when analyzing lane-reducing reductions for vectorization. The issue arose because vect_get_num_copies_for_invariant would assert failure instead of returning an error code when it could not determine the number of copies. The analysis later relied on this information for costing, leading to the ICE. The fix ensures that the vectorizable_lane_reducing function fails early and gracefully when vect_get_num_copies_for_invariant encounters an issue, preventing the ICE and improving robustness for PR 127190.