From: Florian Hahn Date: Tue, 15 Dec 2020 09:11:24 +0000 (+0000) Subject: [VPlan] Use VPdef for VPWidenCall. X-Git-Tag: llvmorg-13-init~3380 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad1161f9b5ff251b80788033e4db82b5a11b187b;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index 1d85e92..3c42f47 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -858,13 +858,16 @@ public: }; /// 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 VPWidenCallRecipe(CallInst &I, iterator_range CallArguments) - : VPRecipeBase(VPRecipeBase::VPWidenCallSC), - VPValue(VPValue::VPVWidenCallSC, &I), VPUser(CallArguments) {} + : VPRecipeBase(VPRecipeBase::VPWidenCallSC), VPUser(CallArguments), + VPValue(VPValue::VPVWidenCallSC, &I, this) {} ~VPWidenCallRecipe() override = default;