Skip to content

Commit 63dd2fa

Browse files
committed
Use NumElts
1 parent c4710c1 commit 63dd2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ static bool isFreeConcat(ArrayRef<InstLane> Item,
17131713

17141714
// Check that the concat is free, usually meaning that the type will be split
17151715
// during legalization.
1716-
SmallVector<int, 16> ConcatMask(Ty->getNumElements() * 2);
1716+
SmallVector<int, 16> ConcatMask(NumElts * 2);
17171717
std::iota(ConcatMask.begin(), ConcatMask.end(), 0);
17181718
if (TTI.getShuffleCost(TTI::SK_PermuteTwoSrc, Ty, ConcatMask,
17191719
TTI::TCK_RecipThroughput) != 0)

0 commit comments

Comments
 (0)