public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/gccgo] ipa.c (walk_polymorphic_call_targets): Fix updating of overall summary.
@ 2020-01-22 23:55 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2020-01-22 23:55 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:65c2b6d290e1d47530b8d14d7077aa8639a8728e
commit 65c2b6d290e1d47530b8d14d7077aa8639a8728e
Author: Jan Hubicka <hubicka@ucw.cz>
Date: Wed Jan 1 11:47:21 2020 +0100
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:
---
gcc/ChangeLog | 5 +++++
gcc/ipa.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
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
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 2404024..7eabecf 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -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 ();
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-22 23:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 23:55 [gcc/devel/gccgo] ipa.c (walk_polymorphic_call_targets): Fix updating of overall summary Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).