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

--- Comment #5 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:c5d24759ba5e470f6fb75e251b84ec8fcb33db07

commit r17-3623-gc5d24759ba5e470f6fb75e251b84ec8fcb33db07
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.

Reply via email to