[llvm] [LV] Don't vectorize epilogue with scalable VF if no iterations remain. (PR #149789)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 04:13:04 PDT 2025


================
@@ -4479,6 +4479,28 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
   Type *TCType = Legal->getWidestInductionType();
   const SCEV *RemainingIterations = nullptr;
   unsigned MaxTripCount = 0;
+  if (MainLoopVF.isFixed()) {
----------------
fhahn wrote:

Yep I have a patch to remove the restriction, although it adds new functionality independent of the change, will share separately.

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


More information about the llvm-commits mailing list