Skip to content

Commit a076a51

Browse files
committed
apply comment
1 parent 37511d3 commit a076a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,8 +963,8 @@ static InstructionsState getSameOpcode(ArrayRef<Value *> VL,
963963
}
964964
bool AnyPoison = InstCnt != VL.size();
965965
// Skip MainOp.
966-
while (++It != VL.end()) {
967-
auto *I = dyn_cast<Instruction>(*It);
966+
for (Value *V : iterator_range(It + 1, VL.end())) {
967+
auto *I = dyn_cast<Instruction>(V);
968968
if (!I)
969969
continue;
970970

0 commit comments

Comments
 (0)