tree-optimization/103641 - improve vect_synth_mult_by_constant
authorRichard Biener <rguenther@suse.de>
Fri, 4 Feb 2022 08:26:57 +0000 (09:26 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 4 Feb 2022 10:30:11 +0000 (11:30 +0100)
commit876e70d4681332a600492173af0c7259e5a438c6
tree70ab826fa8708c4b33d41f54afda85ad102b1c15
parent49365d511ac9b64009b1de11ef8a941f59407f67
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  <rguenther@suse.de>

PR tree-optimization/103641
* tree-vect-patterns.cc (vect_synth_mult_by_constant):
Pass the vector mode to choose_mult_variant.
gcc/tree-vect-patterns.cc