[llvm] [NFC][LV] Introduce enums for uncountable exit detail and style (PR #184808)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 09:48:24 PDT 2026
================
@@ -8179,7 +8194,22 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
return !CM.requiresScalarEpilogue(VF.isVector());
},
Range);
- VPlanTransforms::handleEarlyExits(*Plan, Legal->hasUncountableEarlyExit());
+
+ UncountableEarlyExitDetail EEDetail = Legal->getUncountableEarlyExitDetail();
+#ifndef NDEBUG
+ // If we're vectorizing a loop with an uncountable exit, make sure that the
+ // recipes are safe to handle.
+ if (EEDetail == UncountableEarlyExitDetail::ReadOnly) {
+ ReversePostOrderTraversal<VPBlockShallowTraversalWrapper<VPBlockBase *>>
----------------
huntergr-arm wrote:
done.
https://github.com/llvm/llvm-project/pull/184808
More information about the llvm-commits
mailing list