[VPlan] Replace versioned stride with constant during VPlan opts.
authorFlorian Hahn <flo@fhahn.com>
Tue, 13 Jun 2023 07:26:55 +0000 (08:26 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 13 Jun 2023 07:26:55 +0000 (08:26 +0100)
commitd209084720c4aad27cafd9484a468f78408dbf04
tree866580fdc1fa9666b31af8790e1c2f5adb53d842
parent4acbd4446dbbedd49ea89fdf420a03b338642051
[VPlan] Replace versioned stride with constant during VPlan opts.

After constructing the initial VPlan, replace VPValues for versioned
strides with their constant counterparts.

Differential Revision: https://reviews.llvm.org/D147783
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/ARM/mve-gather-scatter-tailpred.ll
llvm/test/Transforms/LoopVectorize/RISCV/strided-accesses.ll
llvm/test/Transforms/LoopVectorize/runtime-check-needed-but-empty.ll