File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -3006,21 +3006,16 @@ class VPlan {
3006
3006
3007
3007
void setName (const Twine &newName) { Name = newName.str (); }
3008
3008
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
-
3016
3009
// / Gets the live-in VPValue for \p V or adds a new live-in (if none exists
3017
3010
// / yet) for \p V.
3018
3011
VPValue *getOrAddLiveIn (Value *V) {
3019
3012
assert (V && " Trying to get or add the VPValue of a null Value" );
3020
3013
if (!Value2VPValue.count (V)) {
3021
3014
VPValue *VPV = new VPValue (V);
3022
3015
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;
3024
3019
}
3025
3020
3026
3021
assert (Value2VPValue.count (V) && " Value does not exist in VPlan" );
You can’t perform that action at this time.
0 commit comments