[Bug tree-optimization/64597] New: ICE when optimizing with AutoFDO annotation

rearnsha at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 14 14:22:00 GMT 2015


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

            Bug ID: 64597
           Summary: ICE when optimizing with AutoFDO annotation
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rearnsha at gcc dot gnu.org
                CC: dehao at gcc dot gnu.org
            Target: x86_64-linux-gnu

Created attachment 34446
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34446&action=edit
testcase

Compiling the attached testcase with -g -fauto-profile=profile.gcov  -O2,
generates the following ICE.

Note that the testcase has been reduced from the original, but still exhibits
the same ICE.

try.cc: In member function ‘void regwayobj::makebound2(regboundart&,
regboundart&)’:
try.cc:167771832:1: internal compiler error: tree check: expected ssa_name,
have var_decl in walk_aliased_vdefs_1, at tree-ssa-alias.c:2745
0x128a0ba tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /home/rearnsha/gnusrc/gcc/trunk/gcc/tree.c:9255
0x6df619 tree_check(tree_node*, char const*, int, char const*, tree_code)
        /home/rearnsha/gnusrc/gcc/trunk/gcc/tree.h:2770
0x10ba592 walk_aliased_vdefs_1
        /home/rearnsha/gnusrc/gcc/trunk/gcc/tree-ssa-alias.c:2745
0x10ba79d walk_aliased_vdefs(ao_ref*, tree_node*, bool (*)(ao_ref*, tree_node*,
void*), void*, bitmap_head**, bool*)
        /home/rearnsha/gnusrc/gcc/trunk/gcc/tree-ssa-alias.c:2797
0xd667a8 parm_ref_data_preserved_p
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-prop.c:992
0xd66c66 ipa_load_from_parm_agg_1
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-prop.c:1104
0xd66d02 ipa_load_from_parm_agg(ipa_node_params*, gimple_statement_base*,
tree_node*, int*, long*, bool*)
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-prop.c:1124
0xd5088a unmodified_parm_or_parm_agg_item
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-inline-analysis.c:1621
0xd522f2 will_be_nonconstant_predicate
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-inline-analysis.c:2082
0xd54519 estimate_function_body_sizes
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-inline-analysis.c:2701
0xd55746 compute_inline_parameters(cgraph_node*, bool)
        /home/rearnsha/gnusrc/gcc/trunk/gcc/ipa-inline-analysis.c:2954
0x1766e45 early_inline
        /home/rearnsha/gnusrc/gcc/trunk/gcc/auto-profile.c:1549
0x1766f90 auto_profile
        /home/rearnsha/gnusrc/gcc/trunk/gcc/auto-profile.c:1613
0x17671ce execute
        /home/rearnsha/gnusrc/gcc/trunk/gcc/auto-profile.c:1716
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


More information about the Gcc-bugs mailing list