+2017-05-22 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-inline.c (edge_badness): Use inlined_time instead of
+ inline_summaries->get.
+
+2017-05-22 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
+
2017-05-22 Nathan Sidwell <nathan@acm.org>
* doc/invoke.texi (fdump-translation-unit): Delete documentation.
{
sreal numerator, denominator;
int overall_growth;
+ sreal inlined_time = compute_inlined_call_time (edge, edge_time);
numerator = (compute_uninlined_call_time (edge, unspec_edge_time)
- - compute_inlined_call_time (edge, edge_time));
+ - inlined_time);
if (numerator == 0)
numerator = ((sreal) 1 >> 8);
if (caller->count)
overall_growth += 256 * 256 - 256;
denominator *= overall_growth;
}
- denominator *= inline_summaries->get (caller)->self_size + growth;
+ denominator *= inlined_time;
badness = - numerator / denominator;