[llvm] [VPlan] Run more passes through `RUN_VPLAN_PASS[_NO_VERIFY]` (PR #180580)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 00:41:27 PST 2026


================
@@ -7429,9 +7429,10 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
   // Retrieving VectorPH now when it's easier while VPlan still has Regions.
   VPBasicBlock *VectorPH = cast<VPBasicBlock>(BestVPlan.getVectorPreheader());
 
-  VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
-  VPlanTransforms::simplifyRecipes(BestVPlan);
-  VPlanTransforms::removeBranchOnConst(BestVPlan);
+  RUN_VPLAN_PASS_NO_VERIFY(VPlanTransforms::optimizeForVFAndUF, BestVPlan,
----------------
lukel97 wrote:

The NO_VERIFY is a bit wordy. Is it possible to have another `#define NO_VPLAN_VERIFY` macro and #undef it later at the end or something, so we can just write `RUN_VPLAN_PASS`? Might even be good to just shorten it to `VPLAN_PASS`. 

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


More information about the llvm-commits mailing list