@@ -4915,8 +4915,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4915
4915
// recipe that is the key.
4916
4916
using IntervalMap = SmallDenseMap<VPRecipeBase *, unsigned , 16 >;
4917
4917
4918
- // Maps recipe to its index .
4919
- SmallVector<VPRecipeBase *, 64 > IdxToRecipe ;
4918
+ // Maps indices to recipes .
4919
+ SmallVector<VPRecipeBase *, 64 > Idx2Recipe ;
4920
4920
// Marks the end of each interval.
4921
4921
IntervalMap EndPoint;
4922
4922
// Saves the list of recipe indices that are used in the loop.
@@ -4933,7 +4933,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4933
4933
if (!VPBB->getParent ())
4934
4934
break ;
4935
4935
for (VPRecipeBase &R : *VPBB) {
4936
- IdxToRecipe .push_back (&R);
4936
+ Idx2Recipe .push_back (&R);
4937
4937
4938
4938
// Save the end location of each USE.
4939
4939
for (VPValue *U : R.operands ()) {
@@ -4954,7 +4954,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4954
4954
}
4955
4955
4956
4956
// Overwrite previous end points.
4957
- EndPoint[DefR] = IdxToRecipe .size ();
4957
+ EndPoint[DefR] = Idx2Recipe .size ();
4958
4958
Ends.insert (DefR);
4959
4959
}
4960
4960
}
@@ -4963,7 +4963,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4963
4963
// exiting block, where their increment will get materialized eventually.
4964
4964
for (auto &R : Plan.getVectorLoopRegion ()->getEntryBasicBlock ()->phis ()) {
4965
4965
if (isa<VPWidenIntOrFpInductionRecipe>(&R)) {
4966
- EndPoint[&R] = IdxToRecipe .size ();
4966
+ EndPoint[&R] = Idx2Recipe .size ();
4967
4967
Ends.insert (&R);
4968
4968
}
4969
4969
}
@@ -4995,8 +4995,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4995
4995
return TTICapture.getRegUsageForType (VectorType::get (Ty, VF));
4996
4996
};
4997
4997
4998
- for (unsigned int Idx = 0 , Sz = IdxToRecipe .size (); Idx < Sz; ++Idx) {
4999
- VPRecipeBase *R = IdxToRecipe [Idx];
4998
+ for (unsigned int Idx = 0 , Sz = Idx2Recipe .size (); Idx < Sz; ++Idx) {
4999
+ VPRecipeBase *R = Idx2Recipe [Idx];
5000
5000
5001
5001
// Remove all of the recipes that end at this location.
5002
5002
RecipeList &List = TransposeEnds[Idx];
@@ -5412,7 +5412,7 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<ElementCount> VFs) {
5412
5412
// We also search for instructions that are defined outside the loop, but are
5413
5413
// used inside the loop. We need this number separately from the max-interval
5414
5414
// usage number because when we unroll, loop-invariant values do not take
5415
- // more register .
5415
+ // more registers .
5416
5416
LoopBlocksDFS DFS (TheLoop);
5417
5417
DFS.perform (LI);
5418
5418
0 commit comments