[llvm] [LV] Vectorize early exit loops with stores using masking (PR #178454)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 06:22:02 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())
----------------
fhahn wrote:
this appears to be dead/untested
https://github.com/llvm/llvm-project/pull/178454
More information about the llvm-commits
mailing list