Commit a088d7b1 by Jan Hubicka Committed by Jan Hubicka

ipa-inline-transform.c (inline_call): update function summaries after expanidng thunk.

	* ipa-inline-transform.c (inline_call): update function summaries
	after expanidng thunk.

From-SVN: r277483
parent b1e65564
2019-10-27 Jan Hubicka <hubicka@ucw.cz> 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline-transform.c (inline_call): update function summaries
after expanidng thunk.
2019-10-27 Jan Hubicka <hubicka@ucw.cz>
* ipa-icf.c (sem_function::merge): Update function summaries. * ipa-icf.c (sem_function::merge): Update function summaries.
* ipa-prop.h (ipa_get_param): Do not sanity check for WPA. * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
...@@ -352,12 +352,14 @@ inline_call (struct cgraph_edge *e, bool update_original, ...@@ -352,12 +352,14 @@ inline_call (struct cgraph_edge *e, bool update_original,
if (to->thunk.thunk_p) if (to->thunk.thunk_p)
{ {
struct cgraph_node *target = to->callees->callee; struct cgraph_node *target = to->callees->callee;
symtab->call_cgraph_removal_hooks (to);
if (in_lto_p) if (in_lto_p)
to->get_untransformed_body (); to->get_untransformed_body ();
to->expand_thunk (false, true); to->expand_thunk (false, true);
/* When thunk is instrumented we may have multiple callees. */ /* When thunk is instrumented we may have multiple callees. */
for (e = to->callees; e && e->callee != target; e = e->next_callee) for (e = to->callees; e && e->callee != target; e = e->next_callee)
; ;
symtab->call_cgraph_insertion_hooks (to);
gcc_assert (e); gcc_assert (e);
} }
......
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