File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
llvm/lib/Transforms/Vectorize/SandboxVectorizer Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -202,20 +202,18 @@ CollectDescr
202
202
LegalityAnalysis::getHowToCollectValues (ArrayRef<Value *> Bndl) const {
203
203
SmallVector<CollectDescr::ExtractElementDescr, 4 > Vec;
204
204
Vec.reserve (Bndl.size ());
205
- uint32_t LaneAccum;
206
205
for (auto [Elm, V] : enumerate(Bndl)) {
207
206
uint32_t VLanes = VecUtils::getNumLanes (V);
208
207
if (auto *VecOp = IMaps.getVectorForOrig (V)) {
209
208
// If there is a vector containing `V`, then get the lane it came from.
210
209
std::optional<int > ExtractIdxOpt = IMaps.getOrigLane (VecOp, V);
211
210
// This could be a vector, like <2 x float> in which case the mask needs
212
211
// to enumerate all lanes.
213
- for (int Ln = 0 ; Ln != VLanes; ++Ln)
212
+ for (unsigned Ln = 0 ; Ln != VLanes; ++Ln)
214
213
Vec.emplace_back (VecOp, ExtractIdxOpt ? *ExtractIdxOpt + Ln : -1 );
215
214
} else {
216
215
Vec.emplace_back (V);
217
216
}
218
- LaneAccum += VLanes;
219
217
}
220
218
return CollectDescr (std::move (Vec));
221
219
}
You can’t perform that action at this time.
0 commit comments