[llvm] d0d6083 - [SLP][NFC]Fix assert message, NFC.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 13:39:03 PDT 2023


Author: Alexey Bataev
Date: 2023-10-02T13:38:54-07:00
New Revision: d0d608383e76ea8931860fb12af7005ab69230cb

URL: https://github.com/llvm/llvm-project/commit/d0d608383e76ea8931860fb12af7005ab69230cb
DIFF: https://github.com/llvm/llvm-project/commit/d0d608383e76ea8931860fb12af7005ab69230cb.diff

LOG: [SLP][NFC]Fix assert message, NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 2884de6ac1d2ddd..bd67b69e0b55d9e 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -7093,7 +7093,7 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
       NumElts = std::max(NumElts, VecTy->getNumElements());
     }
     assert(NumElts > 0 &&
-           "Expected at least 2-element fixed length vector(s).");
+           "Expected at least 1-element fixed length vector(s).");
     auto *VecTy = FixedVectorType::get(VL.front()->getType(), NumElts);
     unsigned NumOfParts = TTI.getNumberOfParts(VecTy);
     if (!NumOfParts || NumElts < NumOfParts)


        


More information about the llvm-commits mailing list