Landing: 5fa2866f2674

Project / Subsystem

gcc / tree-optimization

Date

2026-08-28

Author

Richard Biener

Commit

5fa2866f2674d274034de150f669aee611c2d9fe

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
—
commit_hash
5fa2866f2674d274034de150f669aee611c2d9fe
source_type
github
headline
Fix ICE with empty reduction in vectorization analysis
tldr
Corrects a bug in vectorization analysis that caused an ICE when encountering empty reduction chains.
author
Richard Biener
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • vectorization
  • • compiler bug
  • • pr127105
discussion_id_link
—
bugzilla_pr
—
date
2026-08-28T00:00:00.000Z

This commit resolves an internal compiler error (ICE) in the vectorization analysis pass (vect_analyze_slp_reduc_chain). The bug occurred when the analysis attempted to access a non-existent statement after verifying its existence. The fix ensures that the statement is accessed only after its presence is confirmed, preventing the ICE and adding a new test case for this scenario.