Hi, this patch fixes ICE in ipa_profile_generate_summary when the call is already devirtualized before the pass starts.
Tested on x86_64-linux Jan Index: ChangeLog =================================================================== --- ChangeLog (revision 206013) +++ ChangeLog (working copy) @@ -1,3 +1,10 @@ +2013-12-14 Jan Hubicka <j...@suse.cz> + Markus Trippelsdorf <octopl...@yandex.com> + + PR ipa/59265 + * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when + call is already devirtualized. + 2013-12-16 Jakub Jelinek <ja...@redhat.com> * Makefile.in (version.o): Restore dependencies on Index: ipa-profile.c =================================================================== --- ipa-profile.c (revision 206013) +++ ipa-profile.c (working copy) @@ -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