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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 12:49:38 PDT 2025


================
@@ -1432,20 +1433,93 @@ static bool isConditionTrueViaVFAndUF(VPValue *Cond, VPlan &Plan,
   return SE.isKnownPredicate(CmpInst::ICMP_EQ, TripCount, C);
 }
 
+static void extractFromWideActiveLaneMask(VPlan &Plan, ElementCount VF,
+                                          unsigned UF) {
+  VPRegionBlock *VectorRegion = Plan.getVectorLoopRegion();
----------------
fhahn wrote:

IIUC this needs to be cost-driven, to only be done when the wider active-lane-mask is profitable?

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


More information about the llvm-commits mailing list