https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63576

--- Comment #1 from Martin Liška <mliska at suse dot cz> ---
Do you have Honza an idea how to handle correctly situation, where ipa_profile
is called before IPA ICF and we mark speculative an edge in:

#0  cgraph_edge::make_speculative (this=this@entry=0x7ffff69e8c98,
n2=0x7ffff6933468, direct_count=1776, direct_frequency=<optimized out>) at
../../gcc/cgraph.c:1027
#1  0x0000000000844d6f in ipa_profile () at ../../gcc/ipa-profile.c:641
#2  (anonymous namespace)::pass_ipa_profile::execute (this=<optimized out>) at
../../gcc/ipa-profile.c:742
#3  0x000000000091bee2 in execute_one_pass (pass=pass@entry=0x1bc76b0) at
../../gcc/passes.c:2155
#4  0x000000000091cbc2 in execute_ipa_pass_list (pass=0x1bc76b0) at
../../gcc/passes.c:2545
#5  0x00000000005e222b in do_whole_program_analysis () at
../../gcc/lto/lto.c:3253
#6  0x00000000005e25e6 in lto_main () at ../../gcc/lto/lto.c:3431
#7  0x00000000009d48f2 in compile_file () at ../../gcc/toplev.c:555
#8  0x00000000009d6bdf in do_compile () at ../../gcc/toplev.c:1977
#9  toplev_main (argc=28, argv=0x1ba4970) at ../../gcc/toplev.c:2053
#10 0x00000000012140dc in main (argc=26, argv=0x7fffffffdd38) at
../../gcc/main.c:36

Thank you,
Martin

Reply via email to