From: Jan Hubicka Date: Wed, 1 Jan 2020 10:47:21 +0000 (+0100) Subject: ipa.c (walk_polymorphic_call_targets): Fix updating of overall summary. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65c2b6d290e1d47530b8d14d7077aa8639a8728e;p=gcc.git ipa.c (walk_polymorphic_call_targets): Fix updating of overall summary. * ipa.c (walk_polymorphic_call_targets): Fix updating of overall summary. From-SVN: r279810 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70caa829f79..76211fc34d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-01 Jan Hubicka + + * ipa.c (walk_polymorphic_call_targets): Fix updating of overall + summary. + 2020-01-01 Jakub Jelinek PR tree-optimization/93098 diff --git a/gcc/ipa.c b/gcc/ipa.c index 2404024d722..7eabecf6c95 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -244,7 +244,8 @@ walk_polymorphic_call_targets (hash_set *reachable_call_targets, } edge = edge->make_direct (target); if (ipa_fn_summaries) - ipa_update_overall_fn_summary (node); + ipa_update_overall_fn_summary (node->inlined_to + ? node->inlined_to : node); else if (edge->call_stmt) edge->redirect_call_stmt_to_callee (); }