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

--- Comment #3 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:50f2a3370d177f8fe9bea0461feb710523e048a2

commit r14-6132-g50f2a3370d177f8fe9bea0461feb710523e048a2
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Dec 4 15:46:38 2023 +0100

    tree-optimization/112827 - more SCEV cprop fixes

    The insert iteration can be corrupted by foldings of replace_uses_by,
    within this particular PHI replacement but also with subsequent ones.
    Recompute the insert location before insertion instead.

    This fixes an obvserved ICE of gcc.dg/tree-ssa/ssa-sink-16.c.

            PR tree-optimization/112827
            PR tree-optimization/112848
            * tree-scalar-evolution.cc (final_value_replacement_loop):
            Compute the insert location for each insert.

Reply via email to