https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121754
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:861b7c054e5f356722e6e1a1b043de5d7a412499 commit r16-3514-g861b7c054e5f356722e6e1a1b043de5d7a412499 Author: Richard Biener <[email protected]> Date: Tue Sep 2 09:50:14 2025 +0200 tree-optimization/121754 - ICE with vect_reduc_type and nested cycle The reduction guard isn't correct, STMT_VINFO_REDUC_DEF also exists for nested cycles not part of reductions but there's no reduction info for them. PR tree-optimization/121754 * tree-vectorizer.h (vect_reduc_type): Simplify to not ICE on nested cycles. * gcc.dg/vect/pr121754.c: New testcase. * gcc.target/aarch64/vect-pr121754.c: Likewise.
