Commit 8256d5ca by Jan Hubicka Committed by Jan Hubicka

ipa-inline-transform.c (inline_call): Only account size changes for !DECL_EXTERNAL.


	* ipa-inline-transform.c (inline_call): Only account size changes
	for !DECL_EXTERNAL.

From-SVN: r192849
parent be384c10
2012-10-26 Jan Hubicka <jh@suse.cz>
* ipa-inline-transform.c (inline_call): Only account size changes
for !DECL_EXTERNAL.
2012-10-26 Martin Jambor <mjambor@suse.cz>
PR debug/54971
......@@ -269,7 +269,10 @@ inline_call (struct cgraph_edge *e, bool update_original,
|| predicated);
#endif
if (overall_size)
/* Account the change of overall unit size; external functions will be
removed and are thus not accounted. */
if (overall_size
&& !DECL_EXTERNAL (to->symbol.decl))
*overall_size += new_size - old_size;
ncalls_inlined++;
......
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