[llvm] [LoopVectorize] Generate wide active lane masks (PR #147535)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 06:35:29 PDT 2025


================
@@ -7328,7 +7332,10 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
     VPlanTransforms::runPass(VPlanTransforms::addBranchWeightToMiddleTerminator,
                              BestVPlan, BestVF, VScale);
   }
-  VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
+  VPlanTransforms::optimizeForVFAndUF(
----------------
kmclaughlin-arm wrote:

I think that would have cleaned this up, thanks!
In the latest commit I am now only using the `EnableWideActiveLaneMask` flag to decide whether to emit a wide mask, so passing `DataAndControlFlowWithoutRuntimeCheck` is no longer required.

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


More information about the llvm-commits mailing list