Skip to content

Commit 2fc75bc

Browse files
committed
Cosmetic update per review.
1 parent 8bf6c69 commit 2fc75bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13243,7 +13243,7 @@ InstructionCost BoUpSLP::getGatherCost(ArrayRef<Value *> VL, bool ForPoisonSrc,
1324313243
// loaded directly into a vector element for free.
1324413244
APInt FreeEltLoads = APInt::getZero(VL.size());
1324513245
if (TTI->supportsEfficientVectorElementLoadStore())
13246-
for (unsigned I = 0, E = VL.size(); I < E; ++I)
13246+
for (unsigned I : seq<unsigned>(VL.size()))
1324713247
if (VL[I]->hasOneUse() && isa<LoadInst>(VL[I]))
1324813248
FreeEltLoads.setBit(I);
1324913249
APInt DemandedElts = ~ShuffledElements & ~FreeEltLoads;

0 commit comments

Comments
 (0)