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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 03:32:01 PDT 2026


================
@@ -804,6 +812,12 @@ enum EpilogueLowering {
   // Loop hint indicating an epilogue is undesired, apply tail folding.
   CM_EpilogueNotNeededFoldTail,
 
+  // Tail-folded vector epilogue requested; the scalar tail will be folded into
+  // the vectorized epilogue loop if possible, otherwise fall back to an
----------------
david-arm wrote:

nit: Perhaps clearer to say "otherwise fall back to a normal epilogue"?

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


More information about the llvm-commits mailing list