https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79224
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- The issue is that we no longer inline all calls to ray_sphere which is the inlining that matters. Declaring trace noinline or ray_sphere always_inline helps.