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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Richard Biener
<[email protected]>:

https://gcc.gnu.org/g:004b053c4b60bdbf946168773d15f5971a28cd1b

commit r16-9667-g004b053c4b60bdbf946168773d15f5971a28cd1b
Author: Richard Biener <[email protected]>
Date:   Mon Aug 24 15:28:42 2026 +0200

    tree-optimization/127000 - revise (T *)(ptr - ptr_cst) pattern

    The following revises the earlier fix which was avoiding
    build_fold_addr_expr_with_type.  Instead the following applies
    the GENERIC simplification that this function should have done
    to the pattern directly, canonicalizing (T *)(ptr - ptr_cst)
    to (T *)ptr p+ cst.  The pattern was originally added with
    r10-7127-gcb99630f254aae.

            PR tree-optimization/127000
            * match.pd ((T *)(ptr - ptr_cst)): Canonicalize directly
            to (T *)ptr p+ cst.

    (cherry picked from commit c5d24759ba5e470f6fb75e251b84ec8fcb33db07)

Reply via email to