]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-inline.c (big_speedup_p): Fix expression.
authorRichard Biener <rguenther@suse.de>
Tue, 2 Jan 2018 12:35:53 +0000 (12:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 2 Jan 2018 12:35:53 +0000 (12:35 +0000)
2018-01-02  Richard Biener  <rguenther@suse.de>

* ipa-inline.c (big_speedup_p): Fix expression.

From-SVN: r256072

gcc/ipa-inline.c
gcc/testsuite/ChangeLog

index 4af47b4d055057aa39dda64d933511032f139e81..68a190d14cae466952a1a9c91f9a90f9f7fdb9bc 100644 (file)
@@ -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;
index e4dd14f7e15186b9407a320d4bc89df13dbcccb6..223877e2b440442118e730b415e015bd075e7fef 100644 (file)
@@ -1,3 +1,7 @@
+2018-01-02  Richard Biener  <rguenther@suse.de>
+
+       * ipa-inline.c (big_speedup_p): Fix expression.
+
 2018-01-01  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/83076