Skip to content

Commit a348341

Browse files
committed
[VPlan] Inline addVPValue into single caller (NFCI).
Inline the function into its single caller.
1 parent b342d87 commit a348341

File tree

1 file changed

+3
-8
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+3
-8
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,21 +3006,16 @@ class VPlan {
30063006

30073007
void setName(const Twine &newName) { Name = newName.str(); }
30083008

3009-
void addVPValue(Value *V, VPValue *VPV) {
3010-
assert(VPV->isLiveIn() && "VPV must be a live-in.");
3011-
assert(V && "Trying to add a null Value to VPlan");
3012-
assert(!Value2VPValue.count(V) && "Value already exists in VPlan");
3013-
Value2VPValue[V] = VPV;
3014-
}
3015-
30163009
/// Gets the live-in VPValue for \p V or adds a new live-in (if none exists
30173010
/// yet) for \p V.
30183011
VPValue *getOrAddLiveIn(Value *V) {
30193012
assert(V && "Trying to get or add the VPValue of a null Value");
30203013
if (!Value2VPValue.count(V)) {
30213014
VPValue *VPV = new VPValue(V);
30223015
VPLiveInsToFree.push_back(VPV);
3023-
addVPValue(V, VPV);
3016+
assert(VPV->isLiveIn() && "VPV must be a live-in.");
3017+
assert(!Value2VPValue.count(V) && "Value already exists in VPlan");
3018+
Value2VPValue[V] = VPV;
30243019
}
30253020

30263021
assert(Value2VPValue.count(V) && "Value does not exist in VPlan");

0 commit comments

Comments
 (0)