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

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

commit r17-4405-gbe7393903c28328a6d2dfd5bbd6347fcbf767bec
Author: Yongqiang Tian <[email protected]>
Date:   Wed Sep 16 22:17:42 2026 +1000

    reorg: Do not charge debug insns against search budget [PR127421]

    Skip DEBUG_INSNs before decrementing the bounded redundant_insn search
    budget.  Debug instructions do not execute and should not hide an otherwise
    reachable ordinary redundancy witness.

    Assisted-by: OpenAI Codex 5.6 Sol, co-reviewed by Claude and Yongqiang
Tian.

            PR rtl-optimization/127421

    gcc/ChangeLog:

            * reorg.cc (redundant_insn): Use NONDEBUG_INSN_P in both bounded
            backward walks.  Remove redundant debug-instruction checks.

    gcc/testsuite/ChangeLog:

            * gcc.target/sparc/pr127421.c: New test.

    Signed-off-by: Yongqiang Tian <[email protected]>

Reply via email to