[llvm] [VPlan] Introduce VPlan-based hasTailFolded helper. (NFC) (PR #208329)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 04:22:56 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 &&
----------------
fhahn wrote:
Yes I plan to remove it soon, as mentioned in the PR description. This is just an extra guard to make sure nothing is missed
> The wrapper should be removed after no divergence are found.
https://github.com/llvm/llvm-project/pull/208329
More information about the llvm-commits
mailing list