diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 3e75b5ed48577..e2bc53372356c 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -13925,10 +13925,11 @@ bool SLPVectorizerPass::vectorizeStores(ArrayRef Stores, unsigned MinVF = TTI->getStoreMinimumVF( R.getMinVF(DL->getTypeSizeInBits(ValueTy)), StoreTy, ValueTy); - if (MaxVF <= MinVF) { + if (MaxVF < MinVF) { LLVM_DEBUG(dbgs() << "SLP: Vectorization infeasible as MaxVF (" << MaxVF - << ") <= " + << ") < " << "MinVF (" << MinVF << ")\n"); + continue; } // FIXME: Is division-by-2 the correct step? Should we assert that the