https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103544
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:d1dc0f6222ecb6eda674e708235c7bc0d90fa987 commit r11-9584-gd1dc0f6222ecb6eda674e708235c7bc0d90fa987 Author: Richard Biener <rguent...@suse.de> Date: Mon Dec 6 11:43:28 2021 +0100 tree-optimization/103544 - SLP reduction chain as SLP reduction issue When SLP reduction chain vectorization support added handling of an outer conversion in the chain picking a failed reduction up as SLP reduction that broke the invariant that the whole reduction was forward reachable. The following plugs that hole noting a future enhancement possibility. 2021-12-06 Richard Biener <rguent...@suse.de> PR tree-optimization/103544 * tree-vect-slp.c (vect_analyze_slp): Only add a SLP reduction opportunity if the stmt in question is the reduction root. * gcc.dg/vect/pr103544.c: New testcase. (cherry picked from commit ee01694151edc7e8aef84dc3c484469e2ae443a0)