https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108008
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 54041 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54041&action=edit Slightly more reduced testcase Slightly more reduced and self contained testcase. I was able to remove the exit from Init as it just caused the function not to be inlined. There is more to be done to reduce it further though.