File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -3013,15 +3013,6 @@ class VPlan {
3013
3013
Value2VPValue[V] = VPV;
3014
3014
}
3015
3015
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
-
3025
3016
// / Gets the live-in VPValue for \p V or adds a new live-in (if none exists
3026
3017
// / yet) for \p V.
3027
3018
VPValue *getOrAddLiveIn (Value *V) {
@@ -3032,7 +3023,10 @@ class VPlan {
3032
3023
addVPValue (V, VPV);
3033
3024
}
3034
3025
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];
3036
3030
}
3037
3031
3038
3032
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
You can’t perform that action at this time.
0 commit comments