Commit b7cb2251 by Jan Hubicka Committed by Jan Hubicka

ipa-inline.c (edge_badness): Use inlined_time instead of inline_summaries->get.

	* ipa-inline.c (edge_badness): Use inlined_time instead of
	inline_summaries->get.

From-SVN: r248334
parent 58aca9d9
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> 2017-05-22 Nathan Sidwell <nathan@acm.org>
* doc/invoke.texi (fdump-translation-unit): Delete documentation. * doc/invoke.texi (fdump-translation-unit): Delete documentation.
......
...@@ -1066,9 +1066,10 @@ edge_badness (struct cgraph_edge *edge, bool dump) ...@@ -1066,9 +1066,10 @@ edge_badness (struct cgraph_edge *edge, bool dump)
{ {
sreal numerator, denominator; sreal numerator, denominator;
int overall_growth; int overall_growth;
sreal inlined_time = compute_inlined_call_time (edge, edge_time);
numerator = (compute_uninlined_call_time (edge, unspec_edge_time) numerator = (compute_uninlined_call_time (edge, unspec_edge_time)
- compute_inlined_call_time (edge, edge_time)); - inlined_time);
if (numerator == 0) if (numerator == 0)
numerator = ((sreal) 1 >> 8); numerator = ((sreal) 1 >> 8);
if (caller->count) if (caller->count)
...@@ -1144,7 +1145,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) ...@@ -1144,7 +1145,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
overall_growth += 256 * 256 - 256; overall_growth += 256 * 256 - 256;
denominator *= overall_growth; denominator *= overall_growth;
} }
denominator *= inline_summaries->get (caller)->self_size + growth; denominator *= inlined_time;
badness = - numerator / denominator; badness = - numerator / denominator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment