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

--- Comment #7 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:df47bc80683a4391e603e50b0d4ad016e6aa71a7

commit r16-9668-gdf47bc80683a4391e603e50b0d4ad016e6aa71a7
Author: Richard Biener <[email protected]>
Date:   Tue Aug 25 15:46:07 2026 +0200

    tree-optimization/127049 - fixup outer loop inner loop DR analysis

    The following fixes a bogus use of build_fold_indirect_ref to build
    the reference we analyze for the innermost loop behavior for outer
    loop vectorization.  That yields to references of a somewhat random
    type and alignment analysis based on that, plus using an INDIRECT_REF
    will make this DR not analyzable very well.  The following changes
    this to a MEM_REF of the original DR_REF type.

            PR tree-optimization/127049
            * tree-vect-data-refs.cc (vect_analyze_data_refs): Build
            a MEM_REF of the DR_REF type for analyzing the innermost
            loop behavior for outer loop vectorization.

            * g++.dg/torture/pr127049.C: New testcase.

    (cherry picked from commit 4e37a91129de4dab6ef37a6b432c565def1ba9f4)

Reply via email to