https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103641
--- Comment #27 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:876e70d4681332a600492173af0c7259e5a438c6 commit r12-7047-g876e70d4681332a600492173af0c7259e5a438c6 Author: Richard Biener <rguent...@suse.de> Date: Fri Feb 4 09:26:57 2022 +0100 tree-optimization/103641 - improve vect_synth_mult_by_constant The following happens to improve compile-time of the PR103641 testcase on aarch64 significantly. I did not investigate the effect on the generated code but at least in theory choose_mult_variant should do a better job when we tell it the actual mode we are going to use for the operations it synthesizes. 2022-02-04 Richard Biener <rguent...@suse.de> PR tree-optimization/103641 * tree-vect-patterns.cc (vect_synth_mult_by_constant): Pass the vector mode to choose_mult_variant.