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

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

https://gcc.gnu.org/g:295e83641d0db2b9bce71447d9d4951317e8e0ad

commit r17-1664-g295e83641d0db2b9bce71447d9d4951317e8e0ad
Author: Richard Sandiford <[email protected]>
Date:   Thu Jun 18 16:54:08 2026 +0100

    backprop: Don't try to delete default defs [PR125872]

    In this PR, -fno-tree-dce meant that backprop was presented with code
    that was completely dead.  The pass's internal DCE then tried to delete
    the function parameter's definition.

    gcc/
            PR tree-optimization/125872
            * gimple-ssa-backprop.cc (backprop::execute): Don't try to delete
            default definitions.

    gcc/testsuite/
            PR tree-optimization/125872
            * gcc.dg/torture/pr125872.c: New test.

Reply via email to