[LV] Fix crash when stride isn't a constant.
authorFlorian Hahn <flo@fhahn.com>
Wed, 14 Jun 2023 15:53:33 +0000 (16:53 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 14 Jun 2023 15:53:34 +0000 (16:53 +0100)
commitea6ca9cb2b6cfcc8ad9f6547bee47936fd2c63ea
treef0e151fe0715c8f737537b369d6ab1206a20cced
parent6bf79fb09416b02b3f8589a4998610d70c185dae
[LV] Fix crash when stride isn't a constant.

In same cases, the stride may not be a constant. Just skip those cases
for now. This should only happen for cases where LV interleaves only, if
it is vectorized the stride needs to be versioned to a constant.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/strided-accesses-interleave-only.ll [new file with mode: 0644]