https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91665
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Oct 21 11:40:48 2019 New Revision: 277249 URL: https://gcc.gnu.org/viewcvs?rev=277249&root=gcc&view=rev Log: Backported from mainline 2019-09-07 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/91665 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type incompatible with the type of PHI result. * gcc.dg/vect/pr91665.c: New test. Added: branches/gcc-9-branch/gcc/testsuite/gcc.dg/vect/pr91665.c Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/testsuite/ChangeLog branches/gcc-9-branch/gcc/tree-vect-loop.c