aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline-analysis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-inline-analysis.cc')
-rw-r--r--gcc/ipa-inline-analysis.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline-analysis.cc b/gcc/ipa-inline-analysis.cc
index 11d8d09..1ca685d 100644
--- a/gcc/ipa-inline-analysis.cc
+++ b/gcc/ipa-inline-analysis.cc
@@ -254,7 +254,7 @@ do_estimate_edge_time (struct cgraph_edge *edge, sreal *ret_nonspec_time)
probability that caller will call the callee is low however, since it
may hurt optimization of the caller's hot path. */
if (edge->count.ipa ().initialized_p () && edge->maybe_hot_p ()
- && (edge->count.ipa ().apply_scale (2, 1)
+ && (edge->count.ipa () * 2
> (edge->caller->inlined_to
? edge->caller->inlined_to->count.ipa ()
: edge->caller->count.ipa ())))