@@ -4915,8 +4915,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
49154915 // recipe that is the key.
49164916 using IntervalMap = SmallDenseMap<VPRecipeBase *, unsigned , 16 >;
49174917
4918- // Maps recipe to its index .
4919- SmallVector<VPRecipeBase *, 64 > IdxToRecipe ;
4918+ // Maps indices to recipes .
4919+ SmallVector<VPRecipeBase *, 64 > Idx2Recipe ;
49204920 // Marks the end of each interval.
49214921 IntervalMap EndPoint;
49224922 // Saves the list of recipe indices that are used in the loop.
@@ -4933,7 +4933,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
49334933 if (!VPBB->getParent ())
49344934 break ;
49354935 for (VPRecipeBase &R : *VPBB) {
4936- IdxToRecipe .push_back (&R);
4936+ Idx2Recipe .push_back (&R);
49374937
49384938 // Save the end location of each USE.
49394939 for (VPValue *U : R.operands ()) {
@@ -4954,7 +4954,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
49544954 }
49554955
49564956 // Overwrite previous end points.
4957- EndPoint[DefR] = IdxToRecipe .size ();
4957+ EndPoint[DefR] = Idx2Recipe .size ();
49584958 Ends.insert (DefR);
49594959 }
49604960 }
@@ -4963,7 +4963,7 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
49634963 // exiting block, where their increment will get materialized eventually.
49644964 for (auto &R : Plan.getVectorLoopRegion ()->getEntryBasicBlock ()->phis ()) {
49654965 if (isa<VPWidenIntOrFpInductionRecipe>(&R)) {
4966- EndPoint[&R] = IdxToRecipe .size ();
4966+ EndPoint[&R] = Idx2Recipe .size ();
49674967 Ends.insert (&R);
49684968 }
49694969 }
@@ -4995,8 +4995,8 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
49954995 return TTICapture.getRegUsageForType (VectorType::get (Ty, VF));
49964996 };
49974997
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];
50005000
50015001 // Remove all of the recipes that end at this location.
50025002 RecipeList &List = TransposeEnds[Idx];
@@ -5412,7 +5412,7 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<ElementCount> VFs) {
54125412 // We also search for instructions that are defined outside the loop, but are
54135413 // used inside the loop. We need this number separately from the max-interval
54145414 // usage number because when we unroll, loop-invariant values do not take
5415- // more register .
5415+ // more registers .
54165416 LoopBlocksDFS DFS (TheLoop);
54175417 DFS.perform (LI);
54185418
0 commit comments