Noticed by somebody else in a PR. Bootstrapped / tested on x86_64-unknown-linux-gnu, applied.
Richard. 2018-01-02 Richard Biener <rguent...@suse.de> * ipa-inline.c (big_speedup_p): Fix expression. Index: gcc/ipa-inline.c =================================================================== --- gcc/ipa-inline.c (revision 256068) +++ gcc/ipa-inline.c (working copy) @@ -691,7 +691,7 @@ big_speedup_p (struct cgraph_edge *e) sreal time = compute_uninlined_call_time (e, unspec_time); sreal inlined_time = compute_inlined_call_time (e, spec_time); - if (time - inlined_time * 100 + if ((time - inlined_time) * 100 > (sreal) (time * PARAM_VALUE (PARAM_INLINE_MIN_SPEEDUP))) return true; return false;