Landing: 0ecc55faf01e

Project / Subsystem

gcc / tree-optimization

Date

2026-04-26

Author

Richard Biener

Commit

0ecc55faf01e4ebd674d8e1a41712c9762c521aa

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
tree-optimization
patch_id
commit_hash
0ecc55faf01e4ebd674d8e1a41712c9762c521aa
source_type
github
headline
Tree-optimization: Fixed ICE with recurrence vectorization.
tldr
The compiler avoids an internal compiler error (ICE) during recurrence vectorization by properly guarding against hitting the last statement when searching for…
author
Richard Biener
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • tree-optimization
  • vectorization
  • ice
  • loop optimization
  • simd
discussion_id_link
bugzilla_pr
date
2026-04-26T00:00:00.000Z

This commit fixes an internal compiler error (ICE) that could occur during recurrence vectorization. The issue was an oversight in a previous fix (PR124677) that didn’t properly guard against hitting the last statement when searching for an insertion point in the loop. This commit adds the missing guard, preventing the ICE. A new testcase was added to reproduce and verify the fix.