From ad1161f9b5ff251b80788033e4db82b5a11b187b Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 15 Dec 2020 09:11:24 +0000 Subject: [PATCH] [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 --- llvm/lib/Transforms/Vectorize/VPlan.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; -- 2.7.4