https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Even if it is just a few insns, if it is larger than the function call, the caller might already trigger threshold of how much it can be enlarged by inlining. If this bugreport would come with the requested details, we could look at the inlining dump and see why gcc has decided not to inline it in particular cases. Without that we can't do anything.