https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39821
--- Comment #7 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:c8ce54c6e67295b70052d1b9f9a2f7ce9e2f8f0d commit r12-2524-gc8ce54c6e67295b70052d1b9f9a2f7ce9e2f8f0d Author: Richard Biener <rguent...@suse.de> Date: Tue Jul 27 09:24:57 2021 +0200 tree-optimization/39821 - fix cost classification for widening arith This adjusts the vectorizer to cost vector_stmt for widening arithmetic instead of vec_promote_demote in the line of telling the target that stmt_info->stmt is the meaningful piece we cost. 2021-07-27 Richard Biener <rguent...@suse.de> PR tree-optimization/39821 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use vector_stmt for widening arithmetic. (vectorizable_conversion): Adjust.