@@ -4901,8 +4901,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4901
4901
// recipe that is the key.
4902
4902
using IntervalMap = SmallDenseMap<VPRecipeBase *, unsigned , 16 >;
4903
4903
4904
- // Maps recipe to its index .
4905
- SmallVector<VPRecipeBase *, 64 > IdxToRecipe ;
4904
+ // Maps indices to recipes .
4905
+ SmallVector<VPRecipeBase *, 64 > Idx2Recipe ;
4906
4906
// Marks the end of each interval.
4907
4907
IntervalMap EndPoint;
4908
4908
// Saves the list of recipe indices that are used in the loop.
@@ -4919,7 +4919,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4919
4919
if (!VPBB->getParent ())
4920
4920
break ;
4921
4921
for (VPRecipeBase &R : *VPBB) {
4922
- IdxToRecipe .push_back (&R);
4922
+ Idx2Recipe .push_back (&R);
4923
4923
4924
4924
// Save the end location of each USE.
4925
4925
for (VPValue *U : R.operands ()) {
@@ -4940,7 +4940,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4940
4940
}
4941
4941
4942
4942
// Overwrite previous end points.
4943
- EndPoint[DefR] = IdxToRecipe .size ();
4943
+ EndPoint[DefR] = Idx2Recipe .size ();
4944
4944
Ends.insert (DefR);
4945
4945
}
4946
4946
}
@@ -4949,7 +4949,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4949
4949
// exiting block, where their increment will get materialized eventually.
4950
4950
for (auto &R : Plan.getVectorLoopRegion ()->getEntryBasicBlock ()->phis ()) {
4951
4951
if (isa<VPWidenIntOrFpInductionRecipe>(&R)) {
4952
- EndPoint[&R] = IdxToRecipe .size ();
4952
+ EndPoint[&R] = Idx2Recipe .size ();
4953
4953
Ends.insert (&R);
4954
4954
}
4955
4955
}
@@ -4981,8 +4981,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
4981
4981
return TTICapture.getRegUsageForType (VectorType::get (Ty, VF));
4982
4982
};
4983
4983
4984
- for (unsigned int Idx = 0 , Sz = IdxToRecipe .size (); Idx < Sz; ++Idx) {
4985
- VPRecipeBase *R = IdxToRecipe [Idx];
4984
+ for (unsigned int Idx = 0 , Sz = Idx2Recipe .size (); Idx < Sz; ++Idx) {
4985
+ VPRecipeBase *R = Idx2Recipe [Idx];
4986
4986
4987
4987
// Remove all of the recipes that end at this location.
4988
4988
RecipeList &List = TransposeEnds[Idx];
@@ -5398,7 +5398,7 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<ElementCount> VFs) {
5398
5398
// We also search for instructions that are defined outside the loop, but are
5399
5399
// used inside the loop. We need this number separately from the max-interval
5400
5400
// usage number because when we unroll, loop-invariant values do not take
5401
- // more register .
5401
+ // more registers .
5402
5402
LoopBlocksDFS DFS (TheLoop);
5403
5403
DFS.perform (LI);
5404
5404
0 commit comments