https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121210
Bug ID: 121210 Summary: IPA Inline pass ICE with AutoFDO Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org Target Milestone: --- lto1: error: inline clone count is not compatible 69 (guessed) 45206733 (estimated locally, globally 0 auto FDO) ZSTD_minCLevel/964 (ZSTD_minCLevel) Type: function definition analyzed Visibility: prevailing_def_ironly previous sharing asm name: 1816 References: Referring: Read from file: zstd-1.5.6/lib/compress/zstd_compress.o Function ZSTD_minCLevel/964 is inline copy in main/442 Availability: local Profile id: 291818683 Unit id: 15 Function flags: count:69 (guessed) local unlikely_executed Called by: main/442 (inlined) (0 (auto FDO),0.00 per call) Calls: during IPA pass: inline lto1: internal compiler error: verify_cgraph_node failed 0x2122e1b internal_error(char const*, ...) /var/jenkins/workspace/GCC_oss-main/gcc/diagnostic-global-context.cc:517 0x97bd6f cgraph_node::verify_node() /var/jenkins/workspace/GCC_oss-main/gcc/cgraph.cc:4163 0x968a4f symtab_node::verify() /var/jenkins/workspace/GCC_oss-main/gcc/symtab.cc:1362 0x969fe7 symtab_node::verify_symtab_nodes() /var/jenkins/workspace/GCC_oss-main/gcc/symtab.cc:1482 0xcd94ff symtab_node::checking_verify_symtab_nodes() /var/jenkins/workspace/GCC_oss-main/gcc/cgraph.h:702 0xcd94ff symbol_table::remove_unreachable_nodes(_IO_FILE*) /var/jenkins/workspace/GCC_oss-main/gcc/ipa.cc:677 0x1f58c23 ipa_inline /var/jenkins/workspace/GCC_oss-main/gcc/ipa-inline.cc:2916 0x1f58c23 execute Please note that this happens when training builds are done with -flto. I will see if I can create a reduced test. I thing the backtrace has the required info.