https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115493
--- Comment #17 from GCC 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:b7ba0670a768e76e87e04cfd6a72c28c35333b54 commit r15-1669-gb7ba0670a768e76e87e04cfd6a72c28c35333b54 Author: Richard Biener <rguent...@suse.de> Date: Wed Jun 26 19:11:04 2024 +0200 tree-optimization/115493 - complete previous fix The following fixes the 2nd occurance of new_temp missed with the previous fix. PR tree-optimization/115493 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Use first scalar result.