From: hubicka Date: Sun, 29 May 2016 17:29:42 +0000 (+0000) Subject: * predict.c (maybe_hot_frequency_p): Avoid division. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=367782e71857dfe44da7a66942e68a6cd8d8da48;p=thirdparty%2Fgcc.git * predict.c (maybe_hot_frequency_p): Avoid division. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236862 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 230f20059c62..41b863b60f36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-27 Jan Hubicka + + * predict.c (maybe_hot_frequency_p): Avoid division. + 2016-05-28 Gerald Pfeifer * doc/install.texi: Use https for shop.fsf.org. diff --git a/gcc/predict.c b/gcc/predict.c index 3743b0107a60..31c5565c3099 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -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; }