Skip to content

Commit 6d0cfc2

Browse files
[Vectorize] Use llvm::drop_begin (NFC) (#144098)
We can pass a range to llvm::drop_begin.
1 parent 938e91e commit 6d0cfc2

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ class VPWidenPHIRecipe : public VPSingleDefRecipe, public VPPhiAccessors {
21142114
VPWidenPHIRecipe *clone() override {
21152115
auto *C = new VPWidenPHIRecipe(cast<PHINode>(getUnderlyingValue()),
21162116
getOperand(0), getDebugLoc(), Name);
2117-
for (VPValue *Op : make_range(std::next(op_begin()), op_end()))
2117+
for (VPValue *Op : llvm::drop_begin(operands()))
21182118
C->addOperand(Op);
21192119
return C;
21202120
}

0 commit comments

Comments
 (0)