https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71146
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Aha, this is because we do not re-evaulate the predicates for inlined edges and in the inline order we first inline into thunk and then inline thunk. This results in some extra work done by tree-inline but is harmless. So the patch is OK