[llvm] [LV][NFC] Emit remarks when failing to vectorise early exit loops (PR #225078)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 01:28:38 PDT 2026
================
@@ -3192,8 +3212,12 @@ static bool handleUncountableExitsWithSideEffects(
SmallVector<VPInstruction *, 8> ConditionRecipes;
VPValue *Cond = getRecipesForUncountableExit(ConditionRecipes, LatchVPBB);
- if (!Cond)
+ if (!Cond) {
+ reportVectorizationFailure("Unable to determine early exit condition for "
+ "loop with side effects.\n",
+ "EarlyExitSideEffectsCond", ORE, TheLoop);
----------------
fhahn wrote:
I think the interface in general already exists, there are variations of the reporting functions that take the debug location explicitly AFAICT: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.cpp#L121C30-L121C53
But as I said, it is fine as follow up
https://github.com/llvm/llvm-project/pull/225078
More information about the llvm-commits
mailing list