Landing: 5dde4aa27ecf

Project / Subsystem

gcc / tree-optimization

Date

2026-09-03

Author

Richard Biener

Commit

5dde4aa27ecfefcebc0a0d7dfbf336e321ec6ea1

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
—
commit_hash
5dde4aa27ecfefcebc0a0d7dfbf336e321ec6ea1
source_type
github
headline
tree-optimization/127195 - Fix ICE with vect_create_constant_vectors
tldr
Fixes an ICE in vectorization when creating constant vectors with excess lanes.
author
Richard Biener
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • bugfix
  • • vectorization
  • • optimization
  • • compiler-error
discussion_id_link
—
bugzilla_pr
—
date
2026-09-03T00:00:00.000Z

An Internal Compiler Error (ICE) in GCC’s vectorization pass, specifically within vect_create_constant_vectors, has been resolved. The bug occurred when code had excess vector lanes, causing an incorrect count of element copies. This led to ctor_seq statements not being emitted properly. The fix corrects the calculation of the number of copies and ensures the operation aligns with vector boundaries.