Skip to content

Commit e75e617

Browse files
committed
[SandboxVec] Fix warnings introduced by 7a7f919
1 parent 859c871 commit e75e617

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,18 @@ CollectDescr
202202
LegalityAnalysis::getHowToCollectValues(ArrayRef<Value *> Bndl) const {
203203
SmallVector<CollectDescr::ExtractElementDescr, 4> Vec;
204204
Vec.reserve(Bndl.size());
205-
uint32_t LaneAccum;
206205
for (auto [Elm, V] : enumerate(Bndl)) {
207206
uint32_t VLanes = VecUtils::getNumLanes(V);
208207
if (auto *VecOp = IMaps.getVectorForOrig(V)) {
209208
// If there is a vector containing `V`, then get the lane it came from.
210209
std::optional<int> ExtractIdxOpt = IMaps.getOrigLane(VecOp, V);
211210
// This could be a vector, like <2 x float> in which case the mask needs
212211
// to enumerate all lanes.
213-
for (int Ln = 0; Ln != VLanes; ++Ln)
212+
for (unsigned Ln = 0; Ln != VLanes; ++Ln)
214213
Vec.emplace_back(VecOp, ExtractIdxOpt ? *ExtractIdxOpt + Ln : -1);
215214
} else {
216215
Vec.emplace_back(V);
217216
}
218-
LaneAccum += VLanes;
219217
}
220218
return CollectDescr(std::move(Vec));
221219
}

0 commit comments

Comments
 (0)