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
202202LegalityAnalysis::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}
You can’t perform that action at this time.
0 commit comments