aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-06-13 13:16:15 -0700
committerGitHub <noreply@github.com>2025-06-13 13:16:15 -0700
commit6d0cfc2ca51e9365f1c6f216df30a612958aca70 (patch)
tree705ef12df3ff9299f7e04c735bb860f4f8192708 /llvm/lib
parent938e91e4fe10a9ff810b41ee74f5c0af8d3ac490 (diff)
downloadllvm-6d0cfc2ca51e9365f1c6f216df30a612958aca70.zip
llvm-6d0cfc2ca51e9365f1c6f216df30a612958aca70.tar.gz
llvm-6d0cfc2ca51e9365f1c6f216df30a612958aca70.tar.bz2
[Vectorize] Use llvm::drop_begin (NFC) (#144098)
We can pass a range to llvm::drop_begin.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/VPlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index acc861b..53619b3 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2114,7 +2114,7 @@ public:
VPWidenPHIRecipe *clone() override {
auto *C = new VPWidenPHIRecipe(cast<PHINode>(getUnderlyingValue()),
getOperand(0), getDebugLoc(), Name);
- for (VPValue *Op : make_range(std::next(op_begin()), op_end()))
+ for (VPValue *Op : llvm::drop_begin(operands()))
C->addOperand(Op);
return C;
}