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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

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

commit r16-8255-gd6f223ad417f6287066ace0d7c6806f7c34a9555
Author: Richard Biener <[email protected]>
Date:   Mon Mar 23 10:51:00 2026 +0100

    tree-optimization/124599 - compile-time regression with PRE

    The following fixes the reported compile-time regression after the
    PRE change to properly track reference expressions in
r16-8128-g5f1024922d3f67.
    The issue is that the VN reference lookup code performs alias walks and
    those are made quadratic for the transition from one VUSE to another
    when that involves multiple translation steps.  The error was to make
    the VUSE part of the expression, but it is really part of the value.
    So the following patch reverts this change, fixing the issue.

            PR tree-optimization/124599
            * tree-ssa-pre.cc (compute_avail): Make the VUSE in the
            PRE reference expression part of the value again.
            (phi_translate_1): Likewise.

Reply via email to