[llvm] e75e617 - [SandboxVec] Fix warnings introduced by 7a7f9190d03e
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 12:47:29 PST 2025
Author: Vasileios Porpodas
Date: 2025-02-12T12:43:24-08:00
New Revision: e75e61728e201f1941c794a12ea22789b6f24c75
URL: https://github.com/llvm/llvm-project/commit/e75e61728e201f1941c794a12ea22789b6f24c75
DIFF: https://github.com/llvm/llvm-project/commit/e75e61728e201f1941c794a12ea22789b6f24c75.diff
LOG: [SandboxVec] Fix warnings introduced by 7a7f9190d03e
Added:
Modified:
llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp
index 366243231379f..36e28b48582f7 100644
--- a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp
+++ b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp
@@ -202,7 +202,6 @@ CollectDescr
LegalityAnalysis::getHowToCollectValues(ArrayRef<Value *> Bndl) const {
SmallVector<CollectDescr::ExtractElementDescr, 4> Vec;
Vec.reserve(Bndl.size());
- uint32_t LaneAccum;
for (auto [Elm, V] : enumerate(Bndl)) {
uint32_t VLanes = VecUtils::getNumLanes(V);
if (auto *VecOp = IMaps.getVectorForOrig(V)) {
@@ -210,12 +209,11 @@ LegalityAnalysis::getHowToCollectValues(ArrayRef<Value *> Bndl) const {
std::optional<int> ExtractIdxOpt = IMaps.getOrigLane(VecOp, V);
// This could be a vector, like <2 x float> in which case the mask needs
// to enumerate all lanes.
- for (int Ln = 0; Ln != VLanes; ++Ln)
+ for (unsigned Ln = 0; Ln != VLanes; ++Ln)
Vec.emplace_back(VecOp, ExtractIdxOpt ? *ExtractIdxOpt + Ln : -1);
} else {
Vec.emplace_back(V);
}
- LaneAccum += VLanes;
}
return CollectDescr(std::move(Vec));
}
More information about the llvm-commits
mailing list