https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102142
--- Comment #2 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:67927342290c61d7e054430f1d7a7281f1f97fae commit r12-3250-g67927342290c61d7e054430f1d7a7281f1f97fae Author: Richard Biener <rguent...@suse.de> Date: Tue Aug 31 11:04:51 2021 +0200 tree-optimization/102142 - fix typo in loop BB reduc cost adjustment This fixes a typo in the condition guarding the cleanup of the visited flag of costed scalar stmts. 2021-08-31 Richard Biener <rguent...@suse.de> PR tree-optimization/102142 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix condition under which to unset the visited flag. * g++.dg/torture/pr102142.C: New testcase.