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