diff options
author | Richard Biener <rguenther@suse.de> | 2021-08-23 14:15:14 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-08-24 10:43:10 +0200 |
commit | 8571ff0ae0922bee292161c7fd61dd127d26a4ed (patch) | |
tree | 25c1e6eb9607cdee669da09dc52235477056c557 /gcc/params.opt | |
parent | 0deabebedd16c9519bfb1dfbff303c2d9bd701ee (diff) | |
download | gcc-8571ff0ae0922bee292161c7fd61dd127d26a4ed.zip gcc-8571ff0ae0922bee292161c7fd61dd127d26a4ed.tar.gz gcc-8571ff0ae0922bee292161c7fd61dd127d26a4ed.tar.bz2 |
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.
Diffstat (limited to 'gcc/params.opt')
-rw-r--r-- | gcc/params.opt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/params.opt b/gcc/params.opt index f926488..f414dc1 100644 --- a/gcc/params.opt +++ b/gcc/params.opt @@ -1114,7 +1114,7 @@ Common Joined UInteger Var(param_vect_partial_vector_usage) Init(2) IntegerRange Controls how loop vectorizer uses partial vectors. 0 means never, 1 means only for loops whose need to iterate can be removed, 2 means for all loops. The default value is 2. -param=vect-inner-loop-cost-factor= -Common Joined UInteger Var(param_vect_inner_loop_cost_factor) Init(50) IntegerRange(1, 999999) Param Optimization -The factor which the loop vectorizer applies to the cost of statements in an inner loop relative to the loop being vectorized. +Common Joined UInteger Var(param_vect_inner_loop_cost_factor) Init(50) IntegerRange(1, 10000) Param Optimization +The maximum factor which the loop vectorizer applies to the cost of statements in an inner loop relative to the loop being vectorized. ; This comment is to ensure we retain the blank line above. |