forked from OSchip/llvm-project
[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
This commit is contained in:
parent
56c5548d7f
commit
ad1161f9b5
|
@ -858,13 +858,16 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A recipe for widening Call instructions.
|
/// 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:
|
public:
|
||||||
template <typename IterT>
|
template <typename IterT>
|
||||||
VPWidenCallRecipe(CallInst &I, iterator_range<IterT> CallArguments)
|
VPWidenCallRecipe(CallInst &I, iterator_range<IterT> CallArguments)
|
||||||
: VPRecipeBase(VPRecipeBase::VPWidenCallSC),
|
: VPRecipeBase(VPRecipeBase::VPWidenCallSC), VPUser(CallArguments),
|
||||||
VPValue(VPValue::VPVWidenCallSC, &I), VPUser(CallArguments) {}
|
VPValue(VPValue::VPVWidenCallSC, &I, this) {}
|
||||||
|
|
||||||
~VPWidenCallRecipe() override = default;
|
~VPWidenCallRecipe() override = default;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue