https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103641
--- Comment #35 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b6950623cd13c98354b105d7210cc1cf6a284f3a commit r11-9656-gb6950623cd13c98354b105d7210cc1cf6a284f3a 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.c (vect_synth_mult_by_constant): Pass the vector mode to choose_mult_variant. (cherry picked from commit 876e70d4681332a600492173af0c7259e5a438c6)