[llvm] [SLP] Exit early if MaxVF < MinVF (NFCI). (PR #83283)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 08:13:38 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
<< ") <= "
----------------
RKSimon wrote:
`<=` -> `<`
https://github.com/llvm/llvm-project/pull/83283
More information about the llvm-commits
mailing list