Commit f0b03e94 by Jan Hubicka Committed by Jan Hubicka

* predict.c (maybe_hot_frequency_p): Avoid division.

From-SVN: r236862
parent 036dc0a0
2016-05-27 Jan Hubicka <hubicka@ucw.cz>
* predict.c (maybe_hot_frequency_p): Avoid division.
2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
* doc/install.texi: Use https for shop.fsf.org.
......
......@@ -115,8 +115,8 @@ maybe_hot_frequency_p (struct function *fun, int freq)
return false;
if (PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION) == 0)
return false;
if (freq < (ENTRY_BLOCK_PTR_FOR_FN (fun)->frequency
/ PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)))
if (freq * PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION)
< ENTRY_BLOCK_PTR_FOR_FN (fun)->frequency)
return false;
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment