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

--- 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:4e37a91129de4dab6ef37a6b432c565def1ba9f4

commit r17-3639-g4e37a91129de4dab6ef37a6b432c565def1ba9f4
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.

Reply via email to