@@ -4911,8 +4911,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4911
4911
// recipe that is the key.
4912
4912
using IntervalMap = SmallDenseMap<VPRecipeBase *, unsigned , 16 >;
4913
4913
4914
- // Maps recipe to its index .
4915
- SmallVector<VPRecipeBase *, 64 > IdxToRecipe ;
4914
+ // Maps indices to recipes .
4915
+ SmallVector<VPRecipeBase *, 64 > Idx2Recipe ;
4916
4916
// Marks the end of each interval.
4917
4917
IntervalMap EndPoint;
4918
4918
// Saves the list of recipe indices that are used in the loop.
@@ -4929,7 +4929,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4929
4929
if (!VPBB->getParent ())
4930
4930
break ;
4931
4931
for (VPRecipeBase &R : *VPBB) {
4932
- IdxToRecipe .push_back (&R);
4932
+ Idx2Recipe .push_back (&R);
4933
4933
4934
4934
// Save the end location of each USE.
4935
4935
for (VPValue *U : R.operands ()) {
@@ -4950,7 +4950,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4950
4950
}
4951
4951
4952
4952
// Overwrite previous end points.
4953
- EndPoint[DefR] = IdxToRecipe .size ();
4953
+ EndPoint[DefR] = Idx2Recipe .size ();
4954
4954
Ends.insert (DefR);
4955
4955
}
4956
4956
}
@@ -4959,7 +4959,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4959
4959
// exiting block, where their increment will get materialized eventually.
4960
4960
for (auto &R : Plan.getVectorLoopRegion ()->getEntryBasicBlock ()->phis ()) {
4961
4961
if (isa<VPWidenIntOrFpInductionRecipe>(&R)) {
4962
- EndPoint[&R] = IdxToRecipe .size ();
4962
+ EndPoint[&R] = Idx2Recipe .size ();
4963
4963
Ends.insert (&R);
4964
4964
}
4965
4965
}
@@ -4991,8 +4991,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4991
4991
return TTICapture.getRegUsageForType (VectorType::get (Ty, VF));
4992
4992
};
4993
4993
4994
- for (unsigned int Idx = 0 , Sz = IdxToRecipe .size (); Idx < Sz; ++Idx) {
4995
- VPRecipeBase *R = IdxToRecipe [Idx];
4994
+ for (unsigned int Idx = 0 , Sz = Idx2Recipe .size (); Idx < Sz; ++Idx) {
4995
+ VPRecipeBase *R = Idx2Recipe [Idx];
4996
4996
4997
4997
// Remove all of the recipes that end at this location.
4998
4998
RecipeList &List = TransposeEnds[Idx];
@@ -5408,7 +5408,7 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<ElementCount> VFs) {
5408
5408
// We also search for instructions that are defined outside the loop, but are
5409
5409
// used inside the loop. We need this number separately from the max-interval
5410
5410
// usage number because when we unroll, loop-invariant values do not take
5411
- // more register .
5411
+ // more registers .
5412
5412
LoopBlocksDFS DFS (TheLoop);
5413
5413
DFS.perform (LI);
5414
5414
0 commit comments