https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88071
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 09:53:35 2019 New Revision: 267682 URL: https://gcc.gnu.org/viewcvs?rev=267682&root=gcc&view=rev Log: Backported from mainline 2018-11-19 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/88071 * tree-vect-loop.c (vectorize_fold_left_reduction): Pass true instead of false as last argument to gsi_remove. * tree-vect-stmts.c (vect_finish_replace_stmt): Pass true instead of false as last argument to gsi_replace. * gcc.dg/pr88071.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr88071.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tree-vect-loop.c branches/gcc-8-branch/gcc/tree-vect-stmts.c