From: Richard Biener Date: Tue, 2 Jan 2018 12:35:53 +0000 (+0000) Subject: ipa-inline.c (big_speedup_p): Fix expression. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f76649a6dc8278b2e377cabf3f80c172ffdc6c2a;p=gcc.git ipa-inline.c (big_speedup_p): Fix expression. 2018-01-02 Richard Biener * ipa-inline.c (big_speedup_p): Fix expression. From-SVN: r256072 --- diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 4af47b4d055..68a190d14ca 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -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; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e4dd14f7e15..223877e2b44 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-01-02 Richard Biener + + * ipa-inline.c (big_speedup_p): Fix expression. + 2018-01-01 Paul Thomas PR fortran/83076