[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:
Florian Hahn 2020-12-15 09:11:24 +00:00
parent 56c5548d7f
commit ad1161f9b5
No known key found for this signature in database
GPG Key ID: 61D7554B5CECDC0D
1 changed files with 6 additions and 3 deletions

View File

@ -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;