diff options
author | Florian Hahn <flo@fhahn.com> | 2024-03-30 20:14:07 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2024-03-30 20:38:40 +0000 |
commit | 8d9cb6b016c9dce8412c329277f1bbaa3f16961c (patch) | |
tree | 774705070d3bd602fe3ed61d0c8c6e75cd9145a5 /llvm/lib/Transforms/Vectorize/VPlan.h | |
parent | 3c8ede9f4524fd8defbbf41788003a6d4b0afb04 (diff) | |
download | llvm-8d9cb6b016c9dce8412c329277f1bbaa3f16961c.zip llvm-8d9cb6b016c9dce8412c329277f1bbaa3f16961c.tar.gz llvm-8d9cb6b016c9dce8412c329277f1bbaa3f16961c.tar.bz2 |
[VPlan] Inline getVPValue in only caller (NFCI).
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlan.h')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlan.h | 14 |
1 files changed, 4 insertions, 10 deletions
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) |