[llvm] [LV][EpilogueTF] Exclude loops with recurrences, alias-masking or unmaskable IAI (PR #224835)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 06:39:49 PDT 2026


================
@@ -3425,6 +3424,38 @@ getEpilogueTailLowering(const LoopVectorizationCostModel &MainCM, const Loop *L,
     return CM_EpilogueAllowed;
   }
 
+  // The epilogue reuses the main loop's interleave groups, so it can't be
+  // tail-folded if the target can't mask interleaved accesses.
+  if (MainCM.InterleaveInfo.hasGroups() &&
----------------
david-arm wrote:

Can you add a brief `// TODO:` saying that we should be able to support this once we can distinguish between interleave info in the main and epilogue loops?

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


More information about the llvm-commits mailing list