[llvm] 8d9cb6b - [VPlan] Inline getVPValue in only caller (NFCI).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 30 13:42:35 PDT 2024
Author: Florian Hahn
Date: 2024-03-30T20:38:40Z
New Revision: 8d9cb6b016c9dce8412c329277f1bbaa3f16961c
URL: https://github.com/llvm/llvm-project/commit/8d9cb6b016c9dce8412c329277f1bbaa3f16961c
DIFF: https://github.com/llvm/llvm-project/commit/8d9cb6b016c9dce8412c329277f1bbaa3f16961c.diff
LOG: [VPlan] Inline getVPValue in only caller (NFCI).
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 272a42e44d884f..6c90c793e66cae 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -3013,15 +3013,6 @@ class VPlan {
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 @@ class VPlan {
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)
More information about the llvm-commits
mailing list