File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ VPlan::~VPlan() {
870
870
}
871
871
delete VPB;
872
872
}
873
- for (VPValue *VPV : VPLiveInsToFree )
873
+ for (VPValue *VPV : getLiveIns () )
874
874
delete VPV;
875
875
if (BackedgeTakenCount)
876
876
delete BackedgeTakenCount;
@@ -1233,7 +1233,7 @@ VPlan *VPlan::duplicate() {
1233
1233
// Create VPlan, clone live-ins and remap operands in the cloned blocks.
1234
1234
auto *NewPlan = new VPlan (cast<VPBasicBlock>(NewEntry), NewScalarHeader);
1235
1235
DenseMap<VPValue *, VPValue *> Old2NewVPValues;
1236
- for (VPValue *OldLiveIn : VPLiveInsToFree ) {
1236
+ for (VPValue *OldLiveIn : getLiveIns () ) {
1237
1237
Old2NewVPValues[OldLiveIn] =
1238
1238
NewPlan->getOrAddLiveIn (OldLiveIn->getLiveInIRValue ());
1239
1239
}
@@ -1537,7 +1537,7 @@ void VPSlotTracker::assignNames(const VPlan &Plan) {
1537
1537
assignName (&Plan.VectorTripCount );
1538
1538
if (Plan.BackedgeTakenCount )
1539
1539
assignName (Plan.BackedgeTakenCount );
1540
- for (VPValue *LI : Plan.VPLiveInsToFree )
1540
+ for (VPValue *LI : Plan.getLiveIns () )
1541
1541
assignName (LI);
1542
1542
1543
1543
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<const VPBlockBase *>>
Original file line number Diff line number Diff line change @@ -3502,7 +3502,7 @@ class VPlan {
3502
3502
3503
3503
// / Contains all the external definitions created for this VPlan. External
3504
3504
// / definitions are VPValues that hold a pointer to their underlying IR.
3505
- SmallVector<VPValue *, 16 > VPLiveInsToFree ;
3505
+ SmallVector<VPValue *, 16 > VPLiveIns ;
3506
3506
3507
3507
// / Mapping from SCEVs to the VPValues representing their expansions.
3508
3508
// / NOTE: This mapping is temporary and will be removed once all users have
@@ -3692,7 +3692,7 @@ class VPlan {
3692
3692
auto [It, Inserted] = Value2VPValue.try_emplace (V);
3693
3693
if (Inserted) {
3694
3694
VPValue *VPV = new VPValue (V);
3695
- VPLiveInsToFree .push_back (VPV);
3695
+ VPLiveIns .push_back (VPV);
3696
3696
assert (VPV->isLiveIn () && " VPV must be a live-in." );
3697
3697
It->second = VPV;
3698
3698
}
@@ -3705,7 +3705,7 @@ class VPlan {
3705
3705
VPValue *getLiveIn (Value *V) const { return Value2VPValue.lookup (V); }
3706
3706
3707
3707
// / Return the list of live-in VPValues available in the VPlan.
3708
- ArrayRef<VPValue *> getLiveIns () const { return VPLiveInsToFree ; }
3708
+ ArrayRef<VPValue *> getLiveIns () const { return VPLiveIns ; }
3709
3709
3710
3710
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
3711
3711
// / Print the live-ins of this VPlan to \p O.
You can’t perform that action at this time.
0 commit comments