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

--- Comment #11 from GCC 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:7c469a9fc785505dc350aba60311812c2bb0c1b5

commit r15-204-g7c469a9fc785505dc350aba60311812c2bb0c1b5
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Feb 28 10:08:31 2024 +0100

    tree-optimization/100923 - re-do VN with contextual PTA info fix

    The following implements the gist of the PR100923 fix in a leaner
    (and more complete) way by realizing that all ao_ref_init_from_vn_reference
    uses need to have an SSA name in the base valueized with availability
    in mind.  Instead of re-valueizing the whole chain of operands we can
    simply only and always valueize the SSA name we put in the base.

    This handles also two omitted places in vn_reference_lookup_3.

            PR tree-optimization/100923
            * tree-ssa-sccvn.cc (ao_ref_init_from_vn_reference): Valueize
            base SSA_NAME.
            (vn_reference_lookup_3): Adjust vn_context_bb around calls
            to ao_ref_init_from_vn_reference.
            (vn_reference_lookup_pieces): Revert original PR100923 fix.
            (vn_reference_lookup): Likewise.

Reply via email to