https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97760
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:7b523f3dff5d7bf49294fe5b794f63cae28d5c5b commit r10-9102-g7b523f3dff5d7bf49294fe5b794f63cae28d5c5b Author: Richard Biener <rguent...@suse.de> Date: Mon Nov 9 15:19:56 2020 +0100 tree-optimization/97760 - reduction paths with unhandled live stmt This makes sure we reject reduction paths with a live stmt that is not the last one altering the value. This is because we do not handle this in the epilogue unless there's a scalar epilogue loop. 2020-11-09 Richard Biener <rguent...@suse.de> PR tree-optimization/97760 * tree-vect-loop.c (check_reduction_path): Reject reduction paths we do not handle in epilogue generation. * gcc.dg/vect/pr97760.c: New testcase. (cherry picked from commit 2686de5617bfb572343933be2883e8274c9735b5)