[llvm-branch-commits] [llvm] ad1161f - [VPlan] Use VPdef for VPWidenCall.
Florian Hahn via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 15 01:29:20 PST 2020
Author: Florian Hahn
Date: 2020-12-15T09:20:07Z
New Revision: ad1161f9b5ff251b80788033e4db82b5a11b187b
URL: https://github.com/llvm/llvm-project/commit/ad1161f9b5ff251b80788033e4db82b5a11b187b
DIFF: https://github.com/llvm/llvm-project/commit/ad1161f9b5ff251b80788033e4db82b5a11b187b.diff
LOG: [VPlan] Use VPdef for VPWidenCall.
This patch turns updates VPWidenREcipe to manage the value it defines
using VPDef.
Reviewed By: gilr
Differential Revision: https://reviews.llvm.org/D90559
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 1d85e9243a59..3c42f47ff9f6 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -858,13 +858,16 @@ class VPWidenRecipe : public VPRecipeBase, public VPValue, public VPUser {
};
/// A recipe for widening Call instructions.
-class VPWidenCallRecipe : public VPRecipeBase, public VPValue, public VPUser {
+class VPWidenCallRecipe : public VPRecipeBase,
+ public VPDef,
+ public VPUser,
+ public VPValue {
public:
template <typename IterT>
VPWidenCallRecipe(CallInst &I, iterator_range<IterT> CallArguments)
- : VPRecipeBase(VPRecipeBase::VPWidenCallSC),
- VPValue(VPValue::VPVWidenCallSC, &I), VPUser(CallArguments) {}
+ : VPRecipeBase(VPRecipeBase::VPWidenCallSC), VPUser(CallArguments),
+ VPValue(VPValue::VPVWidenCallSC, &I, this) {}
~VPWidenCallRecipe() override = default;
More information about the llvm-branch-commits
mailing list