From 8d9cb6b016c9dce8412c329277f1bbaa3f16961c Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sat, 30 Mar 2024 20:14:07 +0000 Subject: [VPlan] Inline getVPValue in only caller (NFCI). --- llvm/lib/Transforms/Vectorize/VPlan.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'llvm/lib/Transforms/Vectorize/VPlan.h') diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index 272a42e..6c90c79 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -3013,15 +3013,6 @@ public: Value2VPValue[V] = VPV; } - /// Returns the VPValue for \p V. - VPValue *getVPValue(Value *V) { - assert(V && "Trying to get the VPValue of a null Value"); - assert(Value2VPValue.count(V) && "Value does not exist in VPlan"); - assert(Value2VPValue[V]->isLiveIn() && - "Only live-ins should be in mapping"); - return Value2VPValue[V]; - } - /// Gets the live-in VPValue for \p V or adds a new live-in (if none exists /// yet) for \p V. VPValue *getOrAddLiveIn(Value *V) { @@ -3032,7 +3023,10 @@ public: addVPValue(V, VPV); } - return getVPValue(V); + assert(Value2VPValue.count(V) && "Value does not exist in VPlan"); + assert(Value2VPValue[V]->isLiveIn() && + "Only live-ins should be in mapping"); + return Value2VPValue[V]; } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -- cgit v1.1