[Bug tree-optimization/125019] [14 Regression] ICE on valid code at -O{2,3} with "-fno-vect-cost-model -fno-tree-dce -fno-tree-pre" on x86_64-linux-gnu: Segmentation fault

2026-06-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125019

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #6 from Richard Biener  ---
Fixed.

[Bug tree-optimization/125019] [14 Regression] ICE on valid code at -O{2,3} with "-fno-vect-cost-model -fno-tree-dce -fno-tree-pre" on x86_64-linux-gnu: Segmentation fault

2026-06-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125019

--- Comment #5 from GCC Commits  ---
The releases/gcc-14 branch has been updated by Richard Biener
:

https://gcc.gnu.org/g:a6d9016c98fc288da9d3aa9c365ac6bb452fedad

commit r14-12663-ga6d9016c98fc288da9d3aa9c365ac6bb452fedad
Author: Richard Biener 
Date:   Sun Apr 26 11:16:33 2026 +0200

tree-optimization/125019 - fix ICE with recurrence vectorization

This fixes an oversight with the PR124677 fix.

PR tree-optimization/125019
* tree-vect-loop.cc (vectorizable_recurr): Properly guard
against hitting last stmt when searching for the insertion
place.

* gcc.dg/pr125019.c: New testcase.

(cherry picked from commit 0ecc55faf01e4ebd674d8e1a41712c9762c521aa)