Skip to content

Commit 8d9cb6b

Browse files
committed
[VPlan] Inline getVPValue in only caller (NFCI).
1 parent 3c8ede9 commit 8d9cb6b

File tree

1 file changed

+4
-10
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+4
-10
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,15 +3013,6 @@ class VPlan {
30133013
Value2VPValue[V] = VPV;
30143014
}
30153015

3016-
/// Returns the VPValue for \p V.
3017-
VPValue *getVPValue(Value *V) {
3018-
assert(V && "Trying to get the VPValue of a null Value");
3019-
assert(Value2VPValue.count(V) && "Value does not exist in VPlan");
3020-
assert(Value2VPValue[V]->isLiveIn() &&
3021-
"Only live-ins should be in mapping");
3022-
return Value2VPValue[V];
3023-
}
3024-
30253016
/// Gets the live-in VPValue for \p V or adds a new live-in (if none exists
30263017
/// yet) for \p V.
30273018
VPValue *getOrAddLiveIn(Value *V) {
@@ -3032,7 +3023,10 @@ class VPlan {
30323023
addVPValue(V, VPV);
30333024
}
30343025

3035-
return getVPValue(V);
3026+
assert(Value2VPValue.count(V) && "Value does not exist in VPlan");
3027+
assert(Value2VPValue[V]->isLiveIn() &&
3028+
"Only live-ins should be in mapping");
3029+
return Value2VPValue[V];
30363030
}
30373031

30383032
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

0 commit comments

Comments
 (0)