https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107931

--- Comment #24 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #23)
> Couldn't we conditionalize that
>       if (!opt_for_fn (node->decl, optimize)
>          /* With -Og we do not want to perform IPA inlining of small
>             functions since there are no scalar cleanups after it
>             that would realize the anticipated win.  All abstraction
>             is removed during early inlining.  */
>          || opt_for_fn (node->decl, optimize_debug))
>         continue;
> on the callee not being always_inline?

You mean on there being no always_inline callee?  This iterates over
the functions we inline _into_.  We don't really special-case always-inline
during IPA since we expect all of them inlined early.

But yes, that would probably mean skipping non-always-inline edges
during enqueueing calls.

Reply via email to