* ipa-utils.c (ipa_merge_profiles): Recompute summaries.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 22 Dec 2018 21:13:41 +0000 (22:13 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 22 Dec 2018 21:13:41 +0000 (21:13 +0000)
From-SVN: r267361

gcc/ChangeLog
gcc/ipa-utils.c

index 2db37e78c757f07156ca2244d38513a8631d976c..fb49cc00c354d05b005b1ea4428691679ca3c8f1 100644 (file)
@@ -1,3 +1,7 @@
+2018-12-21  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-utils.c (ipa_merge_profiles): Recompute summaries.
+
 2018-12-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/85594
index 3345f9dee9fbf227e4526acd52fb04239603182e..422d8d09a0eded1a5ac85e04c71c602a2606768b 100644 (file)
@@ -643,7 +643,9 @@ ipa_merge_profiles (struct cgraph_node *dst,
        }
       if (!preserve_body)
         src->release_body ();
-      ipa_update_overall_fn_summary (dst);
+      /* Update summary.  */
+      symtab->call_cgraph_removal_hooks (dst);
+      symtab->call_cgraph_insertion_hooks (dst);
     }
   /* TODO: if there is no match, we can scale up.  */
   src->decl = oldsrcdecl;