From: Florian Hahn Date: Tue, 15 Dec 2020 14:02:52 +0000 (+0000) Subject: [VPlan] Use VPDef for VPWidenSelectRecipe. X-Git-Tag: llvmorg-13-init~3360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7186a3965af20b02d4620a96f078d826b306c63e;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index 2b3808b..02ae609 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -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 VPWidenSelectRecipe(SelectInst &I, iterator_range 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;