ipa-inline-transform.c (inline_call): update function summaries after expanidng thunk.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 27 Oct 2019 08:07:04 +0000 (09:07 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 27 Oct 2019 08:07:04 +0000 (08:07 +0000)
* ipa-inline-transform.c (inline_call): update function summaries
after expanidng thunk.

From-SVN: r277483

gcc/ChangeLog
gcc/ipa-inline-transform.c

index 8a9131149a1a903e11cc8d156b0e2fbe4b01ef23..15fd0be7bd06ba19c8976ab0903f307454808903 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 14e684e08fd318dffcfaa3ddb9620bd68a4f1fd0..ccaa0ebf5822f09538a2e3b80d81fd7fce0afda5 100644 (file)
@@ -352,12 +352,14 @@ inline_call (struct cgraph_edge *e, bool update_original,
   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);
     }