[llvm] [VPlan] Split out optimizeEVLMasks. NFC (PR #174925)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 8 11:58:38 PST 2026
================
@@ -2979,8 +2979,42 @@ static VPRecipeBase *optimizeMaskToEVL(VPValue *HeaderMask,
return nullptr;
}
-/// Replace recipes with their EVL variants.
-static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
+/// Optimize away any EVL-based header masks to VP intrinsic based recipes.
+/// The transforms here need to preserve the original semantics.
+void VPlanTransforms::optimizeEVLMasks(VPlan &Plan) {
+ // Find the EVL-based header mask if it exists: icmp ult step-vector, EVL
----------------
fhahn wrote:
Can the code use m_SpecificICmp to look for icmp ult?
https://github.com/llvm/llvm-project/pull/174925
More information about the llvm-commits
mailing list