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

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 03:08:18 PDT 2024


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

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

SGTM. Although the name may be used more persistently to associate a VPlan with the fixed original loop, complemented with optimization decisions (e.g., VF, UF), rather than keep track of which optimizations were processed.

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


More information about the llvm-commits mailing list