[llvm] [LV] Vectorize early exit loops with stores using masking (PR #178454)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 08:20:22 PDT 2026
================
@@ -2763,8 +2769,9 @@ bool LoopVectorizationCostModel::isPredicatedInst(Instruction *I) const {
if (Legal->blockNeedsPredication(I->getParent()))
return true;
- // If we're not folding the tail by masking, predication is unnecessary.
- if (!foldTailByMasking())
+ // If we're not folding the tail by masking or vectorizing a loop with
+ // uncountable exits and side effects, predication is unnecessary.
+ if (!foldTailByMasking() && !Legal->hasUncountableExitWithSideEffects())
----------------
huntergr-arm wrote:
Ah, obsolete thanks to other changes. Removed.
https://github.com/llvm/llvm-project/pull/178454
More information about the llvm-commits
mailing list