Skip to content

Commit a65f5e1

Browse files
committed
[SLP][REVEC] Make vectorizeOperand support vector instructions.
1 parent 6016d56 commit a65f5e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12211,7 +12211,8 @@ Value *BoUpSLP::vectorizeOperand(TreeEntry *E, unsigned NodeIdx,
1221112211
return ShuffleBuilder.finalize(std::nullopt);
1221212212
};
1221312213
Value *V = vectorizeTree(VE, PostponedPHIs);
12214-
if (VF != cast<FixedVectorType>(V->getType())->getNumElements()) {
12214+
if ((VF * getNumElements(VL[0]->getType())) !=
12215+
cast<FixedVectorType>(V->getType())->getNumElements()) {
1221512216
if (!VE->ReuseShuffleIndices.empty()) {
1221612217
// Reshuffle to get only unique values.
1221712218
// If some of the scalars are duplicated in the vectorization

0 commit comments

Comments
 (0)