diff mbox series

Fix summaries for expanded thunks

Message ID 20191027080850.6u5kfch7sztjwlvu@kam.mff.cuni.cz
State New
Headers show
Series Fix summaries for expanded thunks | expand

Commit Message

Jan Hubicka Oct. 27, 2019, 8:08 a.m. UTC
Hi,
this is similar to previous patch - when expanding thunk summaries needs
to be recomputed.  Bootstrapped/regtested x86_64-linux, comitted.

Honza

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

Patch

Index: ipa-inline-transform.c
===================================================================
--- ipa-inline-transform.c	(revision 277474)
+++ ipa-inline-transform.c	(working copy)
@@ -352,12 +352,14 @@  inline_call (struct cgraph_edge *e, bool
   if (to->thunk.thunk_p)
     {
       struct cgraph_node *target = to->callees->callee;
+      symtab->call_cgraph_removal_hooks (to);
       if (in_lto_p)
 	to->get_untransformed_body ();
       to->expand_thunk (false, true);
       /* When thunk is instrumented we may have multiple callees.  */
       for (e = to->callees; e && e->callee != target; e = e->next_callee)
 	;
+      symtab->call_cgraph_insertion_hooks (to);
       gcc_assert (e);
     }