The transform 'scalarizeLoadExtract' can be applied to scalable
vector types if the index is less than the minimum number of elements.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/test/Transforms/VectorCombine/AArch64/load-extractelement-scalarization.ll | ||
---|---|---|
96–97 | For scalable vector types, only the index is guaranteed to be less than the minimum length, then this transform is allowed. |
llvm/test/Transforms/VectorCombine/AArch64/load-extractelement-scalarization.ll | ||
---|---|---|
268 | This is not optimized due to there is no guaranteed that index is less than the minimum length of a scalable vector. |
For scalable vector types, only the index is guaranteed to be less than the minimum length, then this transform is allowed.