diff options
author | Jan Hubicka <jh@suse.cz> | 2020-01-17 00:50:22 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-01-17 00:50:22 +0100 |
commit | b6a0ebd1920300db383cd9e213c3bc2afb76e52d (patch) | |
tree | f5db64b09e07e5793a5ee5f1d565d7f90683dae8 /gcc/predict.c | |
parent | 852f0ae80555238c425e33f98df5c7077694bd9f (diff) | |
download | gcc-b6a0ebd1920300db383cd9e213c3bc2afb76e52d.zip gcc-b6a0ebd1920300db383cd9e213c3bc2afb76e52d.tar.gz gcc-b6a0ebd1920300db383cd9e213c3bc2afb76e52d.tar.bz2 |
Extern -param=max-predicted-iterations range.
* params.opt (-param=max-predicted-iterations): Increase range from 0.
* predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index c3aed9e..1b00058 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -3427,7 +3427,8 @@ estimate_loops (void) { auto_bitmap tovisit; basic_block bb; - sreal max_cyclic_prob = (sreal)1 - (sreal)1 / param_max_predicted_iterations; + sreal max_cyclic_prob = (sreal)1 + - (sreal)1 / (param_max_predicted_iterations + 1); /* Start by estimating the frequencies in the loops. */ if (number_of_loops (cfun) > 1) |