[llvm] [VPlan] Also print final VPlan directly before codegen/execute. (PR #82269)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 05:01:13 PST 2024


================
@@ -7456,6 +7456,9 @@ LoopVectorizationPlanner::executePlan(
   if (!IsEpilogueVectorization)
     VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
 
+  BestVPlan.setName("Final VPlan");
----------------
fhahn wrote:

Yep, will move printing "Executing best plan..." down!

> Regarding VPlan's name - "Initial" VPlans are currently dumped following buildVPlansWithVPRecipes() which also optimize()'s them, except for the last optimizeForVFAndUF(). Perhaps the processing stage a VPlan is currently in should be better maintained than in a name string.

Perhaps Initial = after initial construction, Optimized = during most VPlan transforms, Final = just before execution?

https://github.com/llvm/llvm-project/pull/82269


More information about the llvm-commits mailing list