https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120307
Bug ID: 120307
Summary: ICE in combine_with_ipa_count_within, at
profile-count.cc:410 during aarch64 -O3
profiledbootstrap
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: acoplan at gcc dot gnu.org
Target Milestone: ---
Created attachment 61441
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61441&action=edit
unreduced testcase (src + profile data)
The attached unreduced testcase is extracted from an aarch64 -O3
profiledbootstrap, (configured --with-build-config=bootstrap-O3). It fails as
follows:
$ ls
optabs.gcda optabs.ii
$ ../xgcc -B .. -c -S -o /dev/null -O3 -fprofile-use -fno-exceptions optabs.ii
during IPA pass: inline
/home/alecop01/toolchain/src/gcc-worktress/base-profile/gcc/optabs.cc:8280:1:
internal compiler error: in combine_with_ipa_count_within, at
profile-count.cc:410
8280 | }
| ^
0x265c92b internal_error(char const*, ...)
/home/alecop01/toolchain/src/gcc/gcc/diagnostic-global-context.cc:517
0x809e7b fancy_abort(char const*, int, char const*)
/home/alecop01/toolchain/src/gcc/gcc/diagnostic.cc:1815
0x1207213 profile_count::combine_with_ipa_count_within(profile_count,
profile_count)
/home/alecop01/toolchain/src/gcc/gcc/profile-count.cc:410
0xd5987b cgraph_edge::clone(cgraph_node*, gcall*, unsigned int, profile_count,
profile_count, bool)
/home/alecop01/toolchain/src/gcc/gcc/cgraphclones.cc:151
0xd5becf cgraph_node::create_clone(tree_node*, profile_count, bool,
vec<cgraph_edge*, va_heap, vl_ptr>, bool, cgraph_node*, ipa_param_adjustments*,
char const*)
/home/alecop01/toolchain/src/gcc/gcc/cgraphclones.cc:466
0x102328f clone_inlined_nodes(cgraph_edge*, bool, bool, int*)
/home/alecop01/toolchain/src/gcc/gcc/ipa-inline-transform.cc:224
0x1023b97 inline_call(cgraph_edge*, bool, vec<cgraph_edge*, va_heap, vl_ptr>*,
int*, bool, bool*)
/home/alecop01/toolchain/src/gcc/gcc/ipa-inline-transform.cc:516
0x24350fb inline_to_all_callers_1
/home/alecop01/toolchain/src/gcc/gcc/ipa-inline.cc:2635
0x24350fb inline_to_all_callers
/home/alecop01/toolchain/src/gcc/gcc/ipa-inline.cc:2660
0x243627b cgraph_node::call_for_symbol_and_aliases(bool (*)(cgraph_node*,
void*), void*, bool)
/home/alecop01/toolchain/src/gcc/gcc/cgraph.h:3444
0x243627b ipa_inline
/home/alecop01/toolchain/src/gcc/gcc/ipa-inline.cc:2985
0x243627b execute
/home/alecop01/toolchain/src/gcc/gcc/ipa-inline.cc:3314
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
I'm trying to reduce the testcase but it's slow going, so figured I ought to
raise this in the meantime.