summaryrefslogtreecommitdiff
path: root/gcc/ipa-profile.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-16 13:37:43 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-16 13:37:43 +0000
commit3d3bc5e040742d1b9764d7c2dda3aea225706106 (patch)
tree8254e760921a563f650d749f7763c66d9042710a /gcc/ipa-profile.c
parent83f25bf00d933354a08620fc663775a738bb817b (diff)
downloadgcc-3d3bc5e040742d1b9764d7c2dda3aea225706106.tar.gz
PR ipa/59265
* ipa-profile.c (ipa_profile_generate_summary): Do not ICE when call is already devirtualized. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r--gcc/ipa-profile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c
index ef9e2422492..a84b62dca72 100644
--- a/gcc/ipa-profile.c
+++ b/gcc/ipa-profile.c
@@ -210,6 +210,8 @@ ipa_profile_generate_summary (void)
if (h->hvalue.counters[2])
{
struct cgraph_edge * e = cgraph_edge (node, stmt);
+ if (e && !e->indirect_unknown_callee)
+ continue;
e->indirect_info->common_target_id
= h->hvalue.counters [0];
e->indirect_info->common_target_probability