[llvm] [SLP] Use ScopeExit to update Operands/PrevDist on all paths. (NFC) (PR #83490)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 03:14:42 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([&]() {
----------------
fhahn wrote:
Much better, updated, thanks!
https://github.com/llvm/llvm-project/pull/83490
More information about the llvm-commits
mailing list