[llvm] c87ad07 - [SLP][NFC]Fix build for MSVC compiler, NFC
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 14:48:25 PDT 2026
Author: Alexey Bataev
Date: 2026-09-28T17:48:18-04:00
New Revision: c87ad07c33661ca39ec512c834d01f17375673f4
URL: https://github.com/llvm/llvm-project/commit/c87ad07c33661ca39ec512c834d01f17375673f4
DIFF: https://github.com/llvm/llvm-project/commit/c87ad07c33661ca39ec512c834d01f17375673f4.diff
LOG: [SLP][NFC]Fix build for MSVC compiler, NFC
Reported in https://lab.llvm.org/buildbot/#/builders/46/builds/42017
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/227129
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPMemoryUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPMemoryUtils.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPMemoryUtils.cpp
index 7e9681a07a57d..8279c277a1f04 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPMemoryUtils.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPMemoryUtils.cpp
@@ -222,9 +222,9 @@ bool isMaskedLoadCompress(
if (!Order.empty())
inversePermutation(Order, Mask);
// Check external uses.
- for (const auto [I, V] : make_filter_range(enumerate(VL), [&](const auto &P) {
- return !AreAllUsersVectorized(P.value());
- })) {
+ for (const auto [I, V] : enumerate(VL)) {
+ if (AreAllUsersVectorized(V))
+ continue;
InstructionCost ExtractCost =
TTI.getVectorInstrCost(Instruction::ExtractElement, VecTy, CostKind,
Mask.empty() ? I : Mask[I]);
More information about the llvm-commits
mailing list