[llvm] [LV][NFC] Emit remarks when failing to vectorise early exit loops (PR #225078)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 07:46:35 PDT 2026
================
@@ -3272,8 +3315,13 @@ static bool handleUncountableExitsWithSideEffects(
for (VPRecipeBase &R : *VPBB)
if (R.mayReadOrWriteMemory() && &R != Load) {
// TODO: Handle conditional memory operations in the loop.
- if (!VPDT.dominates(R.getParent(), LatchVPBB))
+ if (!VPDT.dominates(R.getParent(), LatchVPBB)) {
+ reportVectorizationFailure(
+ "Early exit loop with side effects "
+ "contains unsupported memory operations.\n",
----------------
david-arm wrote:
Done!
https://github.com/llvm/llvm-project/pull/225078
More information about the llvm-commits
mailing list