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

--- Comment #13 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:1c7824f0b88ab6e4a471c69c5f903ba6c25cbc18

commit r16-6714-g1c7824f0b88ab6e4a471c69c5f903ba6c25cbc18
Author: Richard Biener <[email protected]>
Date:   Mon Jan 12 10:04:49 2026 +0100

    tree-optimization/122830 - move VN through aggregate copies

    The following generalizes the few hacks we have to more loosely
    allow VN through aggregate copies to a more general (but also
    restrictive) feature to rewrite the lookup to a new base with
    a constant offset.  This should now allow all constant-indexed
    aggregate copies and it does never leave any stray components
    and hoping for the best.

    This resolves the diagnostic regression reported in PR122824.

            PR tree-optimization/122830
            PR tree-optimization/122824
            * tree-ssa-sccvn.cc (vn_reference_lookup_3): Generalize
            aggregate copy handling when no variable offsets are
            involved.

            * gcc.dg/tree-ssa/ssa-fre-112.c: New testcase.
            * g++.dg/warn/Warray-bounds-pr122824.C: Likewise.

Reply via email to