https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989
--- Comment #17 from rguenther at suse dot de <rguenther at suse dot de> --- On Thu, 13 Jan 2022, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 > > --- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Perhaps if we punt for -Og caller (and maybe -Og callees) on IPA inlining > except for always_inline, we could set some flag if IPA inlining happened and > schedule some extra cleanup passes just for those rare cases? I'd rather not. At some point I wanted to refactor the main opt pipeline to work like this and skip some of the early passes there if we did _not_ inline ... > Though arguably, if a call to always_inline function was indirect during > einline, we don't need to guarantee that it will be inlined. > But, what about -Og -fno-early-inlining? -Og -fno-early-inline will still do always inline inlining early. /* Even when not optimizing or not inlining inline always-inline functions. */ inlined = inline_always_inline_functions (node);