Skip to content

Commit 3c61251

Browse files
committed
Cosmetic update per review.
1 parent 9be511d commit 3c61251

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
@@ -12986,7 +12986,7 @@ InstructionCost BoUpSLP::getGatherCost(ArrayRef<Value *> VL, bool ForPoisonSrc,
1298612986
// loaded directly into a vector element for free.
1298712987
APInt FreeEltLoads = APInt::getZero(VL.size());
1298812988
if (TTI->supportsEfficientVectorElementLoadStore())
12989-
for (unsigned I = 0, E = VL.size(); I < E; ++I)
12989+
for (unsigned I : seq<unsigned>(VL.size()))
1299012990
if (VL[I]->hasOneUse() && isa<LoadInst>(VL[I]))
1299112991
FreeEltLoads.setBit(I);
1299212992
APInt DemandedElts = ~ShuffledElements & ~FreeEltLoads;

0 commit comments

Comments
 (0)