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

            Bug ID: 93084
           Summary: Infinite loop in ipa-cp when building clang with
                    LTO+PGO
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
  Target Milestone: ---

I get infinite loop in 
(gdb) bt
#0  0x00000000012b0e4e in values_equal_for_ipcp_p (y=0x7fffaf8496c0,
x=0x7fffafc26e80) at ../../gcc/ipa-cp.c:1755
#1  values_equal_for_ipcp_p(tree_node*, tree_node*) [clone .lto_priv.0] () at
../../gcc/ipa-cp.c:1741
#2  0x0000000000eeeea6 in ipcp_lattice<tree_node*>::add_value (this=0xc2a5c48,
newval=0x7fffaf8496c0, cs=0x7fffe4384e38, src_val=0xc664398, src_idx=2,
offset=64, 
    val_p=0x7fffffffdc28, unlimited=true) at ../../gcc/ipa-cp.c:1842
#3  0x00000000012b22dd in propagate_vals_across_arith_jfunc(cgraph_edge*,
tree_code, tree_node*, tree_node*, ipcp_lattice<tree_node*>*,
ipcp_lattice<tree_node*>*, long, int, tree_node*) [clone .lto_priv.0] () at
../../gcc/ipa-cp.c:2029
#4  0x0000000000ebdc0a in propagate_aggregate_lattice (aglat=<optimized out>,
item=<optimized out>, cs=<optimized out>) at ../../gcc/ipa-cp.c:2666
#5  propagate_aggs_across_jump_function (dest_plats=0x3e4db90, jfunc=<optimized
out>, cs=<optimized out>) at ../../gcc/ipa-cp.c:2755
#6  propagate_constants_across_call(cgraph_edge*) [clone .lto_priv.0] () at
../../gcc/ipa-cp.c:2849
#7  0x00000000012704a7 in propagate_constants_topo (topo=0x7fffffffdf50) at
../../gcc/ipa-cp.c:3747
#8  ipcp_propagate_stage (topo=0x7fffffffdf50) at ../../gcc/ipa-cp.c:3867
#9  ipcp_driver () at ../../gcc/ipa-cp.c:5813
#10 (anonymous namespace)::pass_ipa_cp::execute(function*) [clone .lto_priv.0]
() at ../../gcc/ipa-cp.c:5906
#11 0x0000000000e47393 in execute_one_pass(opt_pass*) () at
../../gcc/passes.c:2500
#12 0x000000000126cd1c in execute_ipa_pass_list(opt_pass*) () at
../../gcc/passes.c:2927
#13 0x000000000125ea29 in do_whole_program_analysis () at
../../gcc/lto/lto.c:469
#14 lto_main() () at ../../gcc/lto/lto.c:642
#15 0x000000000125e65e in compile_file() [clone .lto_priv.0] () at
../../gcc/toplev.c:458
#16 0x000000000122be65 in do_compile () at ../../gcc/toplev.c:2269
#17 toplev::main (this=this@entry=0x7fffffffe1ce, argc=<optimized out>,
argv=<optimized out>) at ../../gcc/toplev.c:2408
#18 0x000000000122b29c in main (argc=<optimized out>, argv=<optimized out>) at
../../gcc/main.c:39

Reply via email to