[llvm] e2851ad - [VPlan] Use IterT template arg directly for VPInstruction operands (NFC)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 8 01:42:35 PDT 2023
Author: Florian Hahn
Date: 2023-08-08T09:42:17+01:00
New Revision: e2851ad43d3ef0f79d3234dd2b1f35bfb55bda87
URL: https://github.com/llvm/llvm-project/commit/e2851ad43d3ef0f79d3234dd2b1f35bfb55bda87
DIFF: https://github.com/llvm/llvm-project/commit/e2851ad43d3ef0f79d3234dd2b1f35bfb55bda87.diff
LOG: [VPlan] Use IterT template arg directly for VPInstruction operands (NFC)
Makes the constructors a bit more flexible, to be used in D157194 &
D157144.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index f725c91c4cceb9..cb45d21ad25d25 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -852,15 +852,14 @@ class VPRecipeWithIRFlags : public VPRecipeBase {
public:
template <typename IterT>
- VPRecipeWithIRFlags(const unsigned char SC, iterator_range<IterT> Operands)
+ VPRecipeWithIRFlags(const unsigned char SC, IterT Operands)
: VPRecipeBase(SC, Operands) {
OpType = OperationType::Other;
AllFlags = 0;
}
template <typename IterT>
- VPRecipeWithIRFlags(const unsigned char SC, iterator_range<IterT> Operands,
- Instruction &I)
+ VPRecipeWithIRFlags(const unsigned char SC, IterT Operands, Instruction &I)
: VPRecipeWithIRFlags(SC, Operands) {
if (auto *Op = dyn_cast<OverflowingBinaryOperator>(&I)) {
OpType = OperationType::OverflowingBinOp;
More information about the llvm-commits
mailing list