https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63576
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> --- speculative edges come in pairs (direct, indirect edge) that is obtained by speculative_call_info. THen you need to sum counts (instead of taking ones from BB) and turn them back to frequencies (because it is profile only counts should be non-0)