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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 09:40:29 PST 2024


================
@@ -13912,10 +13918,11 @@ bool SLPVectorizerPass::vectorizeStores(ArrayRef<StoreInst *> Stores,
       unsigned MinVF = TTI->getStoreMinimumVF(
           R.getMinVF(DL->getTypeSizeInBits(ValueTy)), StoreTy, ValueTy);
 
-      if (MaxVF <= MinVF) {
+      if (MaxVF < MinVF) {
----------------
alexey-bataev wrote:

Ah, Yes, missed there were continue before.

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


More information about the llvm-commits mailing list