[llvm] [LV] Add -fold-epilogue-tail option for tail-folded epilogue (PR #190697)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 04:57:35 PDT 2026


================
@@ -9124,6 +9145,14 @@ bool LoopVectorizePass::processLoop(Loop *L) {
   LoopVectorizationPlanner LVP(L, LI, DT, TLI, *TTI, &LVL, CM, IAI, PSE, Hints,
                                ORE);
 
+  if (TailFoldingPolicy.getNumOccurrences() &&
----------------
david-arm wrote:

I think you can just write `if (TailFoldingPolicy == TailFoldingPolicyTy::FoldEpilogueTail) {` here.

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


More information about the llvm-commits mailing list