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

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

https://gcc.gnu.org/g:3960440176ad176d98a36b6f5554b340460ff381

commit r17-3643-g3960440176ad176d98a36b6f5554b340460ff381
Author: Andrew MacLeod <[email protected]>
Date:   Mon Aug 24 13:50:04 2026 -0400

    Infer element should have basic block, not statement.

    Inferred range elements are stored in a list per basic block, the
    elements should refer back to that block rather than the originating
    statement.  Their only use is to indicate which block list they may need
    to be removed from.

            PR tree-optimization/127027
            gcc/
            * gimple-range-infer.cc (exit_range::bbi): Change from stmt.
            (infer_range_manager::add_range): Update block index not stmt.
            (infer_range_manager::clear): Remove from specified block list.

            gcc/testsuite/
            * gcc.dg/pr127027.c: New.

Reply via email to