[llvm] [SLP] Exit early if MaxVF < MinVF (NFCI). (PR #83283)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 06:17:33 PST 2024
================
@@ -13891,12 +13892,17 @@ bool SLPVectorizerPass::vectorizeStores(ArrayRef<StoreInst *> Stores,
if (Idx != Set.size() - 1)
continue;
}
- if (Operands.size() <= 1) {
+ // Capturing structured bindings are a C++ 20 extension, so use a separate
+ // variable for now.
+ auto &DataVar = Data;
+ auto E = make_scope_exit([&]() {
Operands.clear();
- Operands.push_back(Stores[Data.first]);
- PrevDist = Data.second;
+ Operands.push_back(Stores[DataVar.first]);
+ PrevDist = DataVar.second;
+ });
----------------
alexey-bataev wrote:
Better to make it in a separate NFC patch.
https://github.com/llvm/llvm-project/pull/83283
More information about the llvm-commits
mailing list