https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118111
Bug ID: 118111 Summary: profile_estimate builds inconsistent profile for gcc.dg/pr109417.c Product: gcc Version: 14.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: --- I noticed that profile_estimate builds an inconsistent profile for this testcase: ./xgcc -B . -c ~/toolchain/src/gcc/gcc/testsuite/gcc.dg/pr109417.c -O2 -S -o /dev/null -fdump-tree-profile_estimate-blocks-details=- | grep -B 1 "Invalid sum" ;; basic block 11, loop depth 1, count 2769690 (estimated locally, freq 1.4315), maybe hot ;; Invalid sum of incoming counts 4573944 (estimated locally, freq 2.3640), should be 2769690 (estimated locally, freq 1.4315)