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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:d3fee43fb3873b00de913e0501fbf28b56d2ce64

commit r13-4694-gd3fee43fb3873b00de913e0501fbf28b56d2ce64
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Nov 28 12:38:46 2022 +0100

    tree-optimization/107617 - big-endian .LEN_STORE VN

    The following fixes a mistake in interpreting .LEN_STORE definitions
    during value-numbering when in big-endian mode.  We cannot offset
    the encoding of the RHS but instead encode to an offsetted position
    which is then treated correctly by the endian aware copying code.

            PR tree-optimization/107617
            * tree-ssa-sccvn.cc (vn_walk_cb_data::push_partial_def):
            Handle negative pd.rhs_off.
            (vn_reference_lookup_3): Properly provide pd.rhs_off
            for .LEN_STORE on big-endian targets.

Reply via email to