https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98526
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:4f0d8562af81709db39d7899993dd2bf98af28ec commit r10-9406-g4f0d8562af81709db39d7899993dd2bf98af28ec Author: Richard Biener <rguent...@suse.de> Date: Mon Jan 11 11:47:46 2021 +0100 tree-optimization/98526 - fix vectorizer reduction cost This fixes a double-counting in the reduction cost when vectorizing the reduction through the regular vectorizable_* functions. 2021-01-11 Richard Biener <rguent...@suse.de> PR tree-optimization/98526 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing of the actual reduction op for the regular case. (vectorizable_reduction): Cost the stmts vect_transform_reduction produces here. (cherry picked from commit 04bff1bbfc11a974342c0eb0c0d65d902e36e82e)