https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102226
--- Comment #7 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:843068149ec8fcaaaec12751f5b70221a1153857 commit r12-3381-g843068149ec8fcaaaec12751f5b70221a1153857 Author: Richard Biener <rguent...@suse.de> Date: Tue Sep 7 11:46:00 2021 +0200 tree-optimization/102226 - fix epilogue vector re-use This fixes re-use of the reduction value in epilogue vectorization when a conversion from/to variable lenght vectors is required. 2021-09-07 Richard Biener <rguent...@suse.de> PR tree-optimization/102226 * tree-vect-loop.c (vect_transform_cycle_phi): Record the converted value for the epilogue PHI use. * g++.dg/vect/pr102226.cc: New testcase.