https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122301
--- Comment #6 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:2cb9925f4001b931f43ea64b64adf9dbc1089bfa commit r16-4465-g2cb9925f4001b931f43ea64b64adf9dbc1089bfa Author: Richard Biener <[email protected]> Date: Fri Oct 17 09:26:25 2025 +0200 tree-optimization/122301 - fix ICE and improve vectorization of min/max reduction The following fixes another issue with updating of reduc_idx in pattern sequences. But the testcase also shows the pattern in question is harmful for vectorization since a reduction path may not contain promotions/demotions. So the already existing but ineffective check to guard the pattern is fixed. PR tree-optimization/122301 * tree-vect-patterns.cc (vect_recog_over_widening_pattern): Fix reduction guard. (vect_mark_pattern_stmts): Fix reduction def check. * gcc.dg/vect/vect-pr122301.c: New testcase.
