[llvm] [LV] Vectorize uncountable early exit store loops with combined conditions (PR #205109)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 06:27:21 PDT 2026
================
@@ -6579,6 +6596,10 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlan1() {
RUN_VPLAN_PASS(VPlanTransforms::addMiddleCheck, *VPlan0);
+ if (!RUN_VPLAN_PASS(VPlanTransforms::splitCombinedExits, *VPlan0, PSE,
----------------
fhahn wrote:
I think we should guard this behind the uncountable early-exit check; there are some edge cases where SCEV can determine a exact trip count even for conditions feeding loads (e.g. from constant), e.g. something like https://llvm.godbolt.org/z/5TjTsofbE
If `splitCombinedExits` fails, we fail to vectorize and/or we split unnecessaryily
https://github.com/llvm/llvm-project/pull/205109
More information about the llvm-commits
mailing list