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

--- Comment #19 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:c952126870c92cf293d59ffb1497e402eb8fc269

commit r12-6677-gc952126870c92cf293d59ffb1497e402eb8fc269
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Jan 18 13:48:34 2022 +0100

    ipa/103989 - avoid IPA inlining of small functions with -Og

    The following change avoids doing IPA inlining of small functions
    into functions compiled with -Og - those functions will see almost no
    followup scalar cleanups so that the benefit anticipated by the
    inliner will not be realized and instead the late diagnostic code
    will be confused by dead code that is left around.

    2022-01-18  Richard Biener  <rguent...@suse.de>

            PR ipa/103989
            * ipa-inline.cc (inline_small_functions): Do not enqueue call
            edges originating in functions compiled with -Og.

            * g++.dg/opt/pr103989.C: New testcase.

Reply via email to