[llvm] [VPlan] Add hidden `-vplan-print-after-all` option (PR #175839)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 09:06:05 PST 2026


================
@@ -594,6 +597,8 @@ VPlanTransforms::buildVPlan0(Loop *TheLoop, LoopInfo &LI, Type *InductionTy,
   std::unique_ptr<VPlan> VPlan0 = Builder.buildPlainCFG();
   addInitialSkeleton(*VPlan0, InductionTy, IVDL, PSE, TheLoop);
   simplifyLiveInsWithSCEV(*VPlan0, PSE);
+
+  RUN_VPLAN_PASS(printAfterInitialConstruction, *VPlan0);
----------------
lukel97 wrote:

Does the initial VPlan pass the verifier? e.g. if you run the test case you added with `-vplan-verify-each` does it pass?

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


More information about the llvm-commits mailing list