[llvm] [SLP] Exit early if MaxVF < MinVF (NFCI). (PR #83283)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 08:17:25 PST 2024


================
@@ -13912,10 +13912,11 @@ bool SLPVectorizerPass::vectorizeStores(ArrayRef<StoreInst *> 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
                           << ") <= "
----------------
fhahn wrote:

Should be fixed, thanks!

https://github.com/llvm/llvm-project/pull/83283


More information about the llvm-commits mailing list