https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118318
--- Comment #14 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #13) > Thanks for running this through debugger > Breakpoint 2.2, profile_count::operator+= (this=0x7ffff6e7e888, other=...) > at > /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/profile-count.h:932 > 932 gcc_checking_assert (compatible_p (other)); > (gdb) p other > $1 = (const profile_count &) @0x7fffffff72c0: { > static n_bits = 61, > static max_count = 2305843009213693950, > static uninitialized_count = 2305843009213693951, > m_val = 3694, > m_quality = ADJUSTED > } > > is an IPA count. It would be nice to know "p *this", but for compatible_p > to return false it should be function local count. > Breakpoint 5.2, profile_count::operator+= (this=0x7ffff6e7e888, other=...) at /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/profile-count.h:932 932 gcc_checking_assert (compatible_p (other)); (gdb) p other $38 = (const profile_count &) @0x7fffffff72a0: { static n_bits = 61, static max_count = 2305843009213693950, static uninitialized_count = 2305843009213693951, m_val = 3694, m_quality = ADJUSTED } (gdb) p *this $39 = { static n_bits = 61, static max_count = 2305843009213693950, static uninitialized_count = 2305843009213693951, m_val = 14776, m_quality = GUESSED_GLOBAL0 } (gdb)