diff options
author | Kazu Hirata <kazu@google.com> | 2025-06-13 13:16:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-13 13:16:15 -0700 |
commit | 6d0cfc2ca51e9365f1c6f216df30a612958aca70 (patch) | |
tree | 705ef12df3ff9299f7e04c735bb860f4f8192708 /llvm/lib | |
parent | 938e91e4fe10a9ff810b41ee74f5c0af8d3ac490 (diff) | |
download | llvm-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.h | 2 |
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; } |