[llvm] [VPlan] Add hasScalarTail, use instead of !CM.foldTailByMasking() (NFC). (PR #134674)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 03:37:30 PDT 2025


================
@@ -4787,7 +4792,7 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
     }
 
     if (Result.Width.isScalar() ||
-        isMoreProfitable(NextVF, Result, MaxTripCount))
+        isMoreProfitable(NextVF, Result, MaxTripCount, !CM.foldTailByMasking()))
----------------
fhahn wrote:

`selectEpilogueVectorizationFactor` doesn't really work on VPlans directly so it isn't readily available. I think it would be good to update to use VPlans directly in the funciton separately

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


More information about the llvm-commits mailing list