diff options
author | Florian Hahn <flo@fhahn.com> | 2024-04-01 11:12:21 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2024-04-01 11:12:35 +0100 |
commit | a34834138a53f7eb28ba24d325b258ac6f51ae8c (patch) | |
tree | 68b21ac650106d88505ae1fe99650d7ed06cba95 | |
parent | b342d87f89a7cc588abd0d28f69b8dfd9e5cfa0a (diff) | |
download | llvm-a34834138a53f7eb28ba24d325b258ac6f51ae8c.zip llvm-a34834138a53f7eb28ba24d325b258ac6f51ae8c.tar.gz llvm-a34834138a53f7eb28ba24d325b258ac6f51ae8c.tar.bz2 |
[VPlan] Inline addVPValue into single caller (NFCI).
Inline the function into its single caller.
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlan.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index 6c90c79..fdb5c12 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -3006,13 +3006,6 @@ public: void setName(const Twine &newName) { Name = newName.str(); } - void addVPValue(Value *V, VPValue *VPV) { - assert(VPV->isLiveIn() && "VPV must be a live-in."); - assert(V && "Trying to add a null Value to VPlan"); - assert(!Value2VPValue.count(V) && "Value already exists in VPlan"); - Value2VPValue[V] = VPV; - } - /// 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) { @@ -3020,7 +3013,9 @@ public: if (!Value2VPValue.count(V)) { VPValue *VPV = new VPValue(V); VPLiveInsToFree.push_back(VPV); - addVPValue(V, VPV); + assert(VPV->isLiveIn() && "VPV must be a live-in."); + assert(!Value2VPValue.count(V) && "Value already exists in VPlan"); + Value2VPValue[V] = VPV; } assert(Value2VPValue.count(V) && "Value does not exist in VPlan"); |