+2017-11-14 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-inline.c (edge_badness): Dump sreal frequency.
+ (compute_inlined_call_time): Match natural implementaiton ...
+ * ipa-fnsummary.c (estimate_edge_size_and_time): ... here; remove
+ forgotten division by CGRAPH_FREQ_BASE.
+
2017-11-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit since
if (prob == REG_BR_PROB_BASE)
*time += ((sreal)call_time) * e->sreal_frequency ();
else
- *time += ((sreal)call_time * prob) * e->sreal_frequency ()
- / CGRAPH_FREQ_BASE;
+ *time += ((sreal)call_time * prob) * e->sreal_frequency ();
}
/* This calculation should match one in ipa-inline-analysis.c
(estimate_edge_size_and_time). */
- time -= (sreal) edge->frequency ()
- * ipa_call_summaries->get (edge)->call_stmt_time / CGRAPH_FREQ_BASE;
+ time -= (sreal)ipa_call_summaries->get (edge)->call_stmt_time * freq;
time += caller_time;
if (time <= 0)
time = ((sreal) 1) >> 8;
" overall growth %i (current) %i (original)"
" %i (compensated)\n",
badness.to_double (),
- (double)edge->frequency () / CGRAPH_FREQ_BASE,
+ edge->sreal_frequency ().to_double (),
edge->count.ipa ().initialized_p () ? edge->count.ipa ().to_gcov_type () : -1,
caller->count.ipa ().initialized_p () ? caller->count.ipa ().to_gcov_type () : -1,
compute_uninlined_call_time (edge,