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

--- Comment #2 from GCC 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:afd49e663258061a10f0f2c4a8f8aa2bf97bee42

commit r14-6684-gafd49e663258061a10f0f2c4a8f8aa2bf97bee42
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Dec 19 10:51:06 2023 +0100

    tree-optimization/113080 - missing final value replacement

    When performing final value replacement we guard against exponential
    (temporary) code growth due to unsharing of trees (SCEV heavily
    relies on tree sharing).  The following relaxes this a tiny bit
    to cover some more optimizations and puts in comments as to what
    the real fix would be.

            PR tree-optimization/113080
            * tree-scalar-evolution.cc (expression_expensive_p): Allow
            a tiny bit of growth due to expansion of shared trees.
            (final_value_replacement_loop): Add comment.

            * gcc.dg/tree-ssa/sccp-3.c: New testcase.

Reply via email to