diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2020-01-01 11:47:21 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2020-01-01 10:47:21 +0000 |
commit | 65c2b6d290e1d47530b8d14d7077aa8639a8728e (patch) | |
tree | b66f66e94f25b0cc6d3d9bcf07c362a58cd6693e /gcc | |
parent | 2efa10d528bb20bff299a899b1f226b6174b50da (diff) | |
download | gcc-65c2b6d290e1d47530b8d14d7077aa8639a8728e.zip gcc-65c2b6d290e1d47530b8d14d7077aa8639a8728e.tar.gz gcc-65c2b6d290e1d47530b8d14d7077aa8639a8728e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70caa82..76211fc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-01 Jan Hubicka <hubicka@ucw.cz> + + * ipa.c (walk_polymorphic_call_targets): Fix updating of overall + summary. + 2020-01-01 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/93098 @@ -244,7 +244,8 @@ walk_polymorphic_call_targets (hash_set<void *> *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 (); } |