diff mbox series

Fix big_speedup_p "typo"

Message ID alpine.LSU.2.20.1801021334300.32271@zhemvz.fhfr.qr
State New
Headers show
Series Fix big_speedup_p "typo" | expand

Commit Message

Richard Biener Jan. 2, 2018, 12:35 p.m. UTC
Noticed by somebody else in a PR.  Bootstrapped / tested on 
x86_64-unknown-linux-gnu, applied.

Richard.

2018-01-02  Richard Biener  <rguenther@suse.de>

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

Patch

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;