forked from OSchip/llvm-project
[VPlan] Use VPDef for VPWidenSelectRecipe.
This patch turns updates VPWidenSelectRecipe to manage the value it defines using VPDef. Reviewed By: gilr Differential Revision: https://reviews.llvm.org/D90560
This commit is contained in:
parent
91445979be
commit
7186a3965a
|
@ -885,7 +885,10 @@ public:
|
|||
};
|
||||
|
||||
/// A recipe for widening select instructions.
|
||||
class VPWidenSelectRecipe : public VPRecipeBase, public VPValue, public VPUser {
|
||||
class VPWidenSelectRecipe : public VPRecipeBase,
|
||||
public VPDef,
|
||||
public VPUser,
|
||||
public VPValue {
|
||||
|
||||
/// Is the condition of the select loop invariant?
|
||||
bool InvariantCond;
|
||||
|
@ -894,8 +897,8 @@ public:
|
|||
template <typename IterT>
|
||||
VPWidenSelectRecipe(SelectInst &I, iterator_range<IterT> Operands,
|
||||
bool InvariantCond)
|
||||
: VPRecipeBase(VPRecipeBase::VPWidenSelectSC),
|
||||
VPValue(VPValue::VPVWidenSelectSC, &I), VPUser(Operands),
|
||||
: VPRecipeBase(VPRecipeBase::VPWidenSelectSC), VPUser(Operands),
|
||||
VPValue(VPValue::VPVWidenSelectSC, &I, this),
|
||||
InvariantCond(InvariantCond) {}
|
||||
|
||||
~VPWidenSelectRecipe() override = default;
|
||||
|
|
Loading…
Reference in New Issue