* params.opt (-param=max-predicted-iterations): Increase range from 0.
* predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
+2020-01-16 Jan Hubicka <hubicka@ucw.cz>
+
+ * params.opt (-param=max-predicted-iterations): Increase range from 0.
+ * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
+
2020-01-16 Jan Hubicka <hubicka@ucw.cz>
* ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
Maximum depth of sqrt chains to use when synthesizing exponentiation by a real constant.
-param=max-predicted-iterations=
-Common Joined UInteger Var(param_max_predicted_iterations) Init(100) IntegerRange(1, 65536) Param Optimization
+Common Joined UInteger Var(param_max_predicted_iterations) Init(100) IntegerRange(0, 65536) Param Optimization
The maximum number of loop iterations we predict statically.
-param=max-reload-search-insns=
{
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)