Skip to content

Commit 4766679

Browse files
committed
Resolve review comments
1 parent 89b158b commit 4766679

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2779,6 +2779,8 @@ static Value *interleaveVectors(IRBuilderBase &Builder, ArrayRef<Value *> Vals,
27792779
// Scalable vectors cannot use arbitrary shufflevectors (only splats), so
27802780
// must use intrinsics to interleave.
27812781
if (VecTy->isScalableTy()) {
2782+
assert(isPowerOf2_32(Factor) && "Unsupported interleave factor for "
2783+
"scalable vectors, must be power of 2");
27822784
SmallVector<Value *> InterleavingValues(Vals);
27832785
// When interleaving, the number of values will be shrunk until we have the
27842786
// single final interleaved value.
@@ -2926,7 +2928,6 @@ void VPInterleaveRecipe::execute(VPTransformState &State) {
29262928

29272929
// Scalable vectors cannot use arbitrary shufflevectors (only splats),
29282930
// so must use intrinsics to deinterleave.
2929-
29302931
SmallVector<Value *> DeinterleavedValues(InterleaveFactor);
29312932
DeinterleavedValues[0] = NewLoad;
29322933
// For the case of InterleaveFactor > 2, we will have to do recursive

llvm/test/Transforms/InterleavedAccess/AArch64/sve-deinterleave4.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ define void @negative_deinterleave4_test(ptr %src) {
136136

137137
ret void
138138
}
139-

0 commit comments

Comments
 (0)