From 61e8dc4b93e6c177eb971e826e29bc195c283fda Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 22 Dec 2018 22:13:41 +0100 Subject: [PATCH] * ipa-utils.c (ipa_merge_profiles): Recompute summaries. From-SVN: r267361 --- gcc/ChangeLog | 4 ++++ gcc/ipa-utils.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2db37e78c75..fb49cc00c35 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-12-21 Jan Hubicka + + * ipa-utils.c (ipa_merge_profiles): Recompute summaries. + 2018-12-21 Jakub Jelinek PR middle-end/85594 diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c index 3345f9dee9f..422d8d09a0e 100644 --- a/gcc/ipa-utils.c +++ b/gcc/ipa-utils.c @@ -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; -- 2.30.2