[llvm] [LV] codegen for tail-folded epilogue loop (PR #208764)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 03:32:57 PDT 2026


================
@@ -8060,6 +8212,15 @@ bool LoopVectorizePass::processLoop(Loop *L) {
 
   // Plan how to best vectorize.
   LVP.plan(UserVF, UserIC);
+  if (EpilogueTailFoldingCM.has_value())
----------------
david-arm wrote:

I think you should just be able to do

```
  if (EpilogueTailFoldingCM)
```

here.

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


More information about the llvm-commits mailing list