[llvm] LV]: consider scalable VF during deciding dead epilogue. (PR #156724)

Hassnaa Hamdi via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 07:21:28 PST 2025


================
@@ -4407,6 +4407,13 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
     LLVM_DEBUG(dbgs() << "LEV: Maximum Trip Count for Epilogue: "
                       << MaxTripCount << "\n");
   }
+  // Check if the RemainingIterations is scalable.
----------------
hassnaaHamdi wrote:

About this suggestion:
`2. We add code in the loop to explicitly avoid comparing the next VF with remaining iterations if we don't expect a sensible answer.`
Do you mean that we skip the epilogue loop at that case ?

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


More information about the llvm-commits mailing list