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

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 00:15:09 PST 2024


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

"Final" VPlans should indeed be printed after the last optimizeForVFAndUF(), but preferably along with the "Executing best plan ..." dump above?

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.

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


More information about the llvm-commits mailing list