[llvm] [VPlan] Introduce VPlan-based hasTailFolded helper. (NFC) (PR #208329)

Hassnaa Hamdi via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 10 09:15:15 PDT 2026


================
@@ -7126,6 +7125,13 @@ bool LoopVectorizationPlanner::requiresScalarEpilogue(VPlan &Plan,
   return Result;
 }
 
+bool LoopVectorizationPlanner::hasTailFolded(const VPlan &Plan) const {
+  bool Result = Plan.hasTailFolded();
+  assert(CM.foldTailByMasking() == Result &&
----------------
hassnaaHamdi wrote:

Do you agree that this assert will be removed when we have extra instance of CM for the tail-folded epilogue ?

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


More information about the llvm-commits mailing list