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

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

https://gcc.gnu.org/g:791386dc22c978e374863d459c378c64cb6d8f26

commit r17-4846-g791386dc22c978e374863d459c378c64cb6d8f26
Author: Yongqiang Tian <[email protected]>
Date:   Fri Oct 2 22:33:13 2026 +0200

    tree-optimization: Skip debug stmts before assigning UIDs [PR127687]

    GIMPLE_DEBUG statements currently consume UIDs and are then treated as
    non-assignments, which flushes pending VEC_PERM simplify sequences.  This
    makes sequence blending depend on whether debug information is present.

    Skip debug statements before assigning UIDs and processing ordinary
    statements.

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

            PR tree-optimization/127687

    gcc/ChangeLog:

            * tree-ssa-forwprop.cc (pass_forwprop::execute): Skip debug
            statements before assigning UIDs.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr127687.c: New test.

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

Reply via email to