[llvm] [LV] Vectorize Epilogues for loops with small VF but high IC (PR #108190)

Sjoerd Meijer via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 02:32:03 PST 2024


================
@@ -4677,7 +4683,11 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
     return Result;
   }
 
-  if (!CM.isEpilogueVectorizationProfitable(MainLoopVF)) {
+  unsigned Multiplier = IC;
+  if (MainLoopVF.isScalable())
+    Multiplier = getVScaleForTuning(OrigLoop, TTI).value_or(1);
----------------
sjoerdmeijer wrote:

I can volunteer for that, but I am really keen that this lands first. :) 

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


More information about the llvm-commits mailing list