[llvm] [LV] Support tail-folded epilogue loops (PR #208764)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 05:51:15 PDT 2026


================
@@ -8107,6 +8253,20 @@ bool LoopVectorizePass::processLoop(Loop *L) {
 
   // Plan how to best vectorize.
   LVP.plan(UserVF, UserIC);
+  if (EpilogueTailFoldingCM) {
+    // Enable the epilogue tail-folding CM
+    LVP.enableEpilogueTFCM();
+    if (!LVP.planForEpilogueTF()) {
----------------
fhahn wrote:

I think this may still be open, or I at least missed how this was resolved

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


More information about the llvm-commits mailing list