Adjust inner loop cost scaling
authorRichard Biener <rguenther@suse.de>
Mon, 23 Aug 2021 12:15:14 +0000 (14:15 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 24 Aug 2021 08:43:10 +0000 (10:43 +0200)
commit8571ff0ae0922bee292161c7fd61dd127d26a4ed
tree25c1e6eb9607cdee669da09dc52235477056c557
parent0deabebedd16c9519bfb1dfbff303c2d9bd701ee
Adjust inner loop cost scaling

This makes use of the estimated number of iterations of the inner loop
to limit --param vect-inner-loop-cost-factor scaling.  It also reduces
the maximum value of vect-inner-loop-cost-factor to 10000 making it
less likely to cause overflow of costs.

2021-08-23  Richard Biener  <rguenther@suse.de>

* doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
* params.opt (--param vect-inner-loop-cost-factor): Adjust
maximum value.
* tree-vect-loop.c (vect_analyze_loop_form): Initialize
inner_loop_cost_factor to the minimum of the estimated number
of iterations of the inner loop and vect-inner-loop-cost-factor.
gcc/doc/invoke.texi
gcc/params.opt
gcc/tree-vect-loop.c