https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83015
--- Comment #18 from Jan Hubicka <hubicka at ucw dot cz> --- With the release checking in stage1 it reproduces on x86-64, too. I am testing Index: ipa-inline.c =================================================================== --- ipa-inline.c (revision 255103) +++ ipa-inline.c (working copy) @@ -1865,6 +1865,8 @@ inline_small_functions (void) gcc_assert (cached_badness == current_badness); gcc_assert (current_badness >= badness); } + else + current_badness = edge_badness (edge, false); #else current_badness = edge_badness (edge, false); #endif