Skip to content

Commit be3ecf2

Browse files
committed
!fixup Ops0 -> OpsI, thanks!
1 parent 471e12b commit be3ecf2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4282,10 +4282,11 @@ static bool canNarrowOps(ArrayRef<VPValue *> Ops) {
42824282
}
42834283

42844284
for (unsigned Idx = 0; Idx != WideMember0->getNumOperands(); ++Idx) {
4285-
SmallVector<VPValue *> Ops0;
4285+
SmallVector<VPValue *> OpsI;
42864286
for (VPValue *Op : Ops)
4287-
Ops0.push_back(Op->getDefiningRecipe()->getOperand(Idx));
4288-
if (any_of(enumerate(Ops0), [WideMember0, Idx](const auto &P) {
4287+
OpsI.push_back(Op->getDefiningRecipe()->getOperand(Idx));
4288+
4289+
if (any_of(enumerate(OpsI), [WideMember0, Idx](const auto &P) {
42894290
const auto &[OpIdx, OpV] = P;
42904291
return !canNarrowLoad(WideMember0, Idx, OpV, OpIdx);
42914292
}))

0 commit comments

Comments
 (0)