Commit 6c291ad8 by Jan Hubicka Committed by Jan Hubicka

ipa-inline.c: Fix type; compute size rather than self_size for size of caller function.


	* ipa-inline.c: Fix type; compute size rather than self_size
	for size of caller function.

From-SVN: r276629
parent 2345fe52
2019-10-05 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline.c: Fix type; compute size rather than self_size
for size of caller function.
2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
PR target/59888
......
......@@ -1186,7 +1186,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
if (need_more_work)
noninline_callee ();
}
Withhout panilizing this case, we usually inline noninline_callee
Withhout penalizing this case, we usually inline noninline_callee
into the inline_caller because overall_growth is small preventing
further inlining of inline_caller.
......@@ -1243,7 +1243,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
overall_growth += 256 * 256 - 256;
denominator *= overall_growth;
}
denominator *= ipa_fn_summaries->get (caller)->self_size + growth;
denominator *= ipa_fn_summaries->get (caller)->size + growth;
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