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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:05393afc13706fd8db35729398f2017d5feff3c8

commit r16-4408-g05393afc13706fd8db35729398f2017d5feff3c8
Author: Andrew Pinski <[email protected]>
Date:   Mon Oct 13 16:35:07 2025 -0700

    cselim: Handle clobbers too [PR122178]

    With the addition of cselim-limited in phiopt, factoring
    out clobbers can be added easily. Now sink handles clobbers as
    a store too. So this just moves that earlier.

    This adds support there with a testcase to show it happens.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR tree-optimization/122178

    gcc/ChangeLog:

            * tree-ssa-phiopt.cc (cond_if_else_store_replacement_1): Handle
            clobber statements.

    gcc/testsuite/ChangeLog:

            * g++.dg/tree-ssa/cselim-1.C: New test.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to