https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108782
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:994224236e0231807681b62e880d3c2772c69521 commit r13-5983-g994224236e0231807681b62e880d3c2772c69521 Author: Richard Biener <rguent...@suse.de> Date: Tue Feb 14 11:10:56 2023 +0100 tree-optimization/108782 - nested first order recurrence vectorization First order recurrence vectorization isn't possible for nested loops. PR tree-optimization/108782 * tree-vect-loop.cc (vect_phi_first_order_recurrence_p): Make sure we're not vectorizing an inner loop. * gcc.dg/torture/pr108782.c: New testcase.