[llvm] [LV] Only require a scalar epilogue for interleave groups actually widened as interleave accesses (PR #213904)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 08:50:51 PDT 2026
================
@@ -1275,6 +1284,15 @@ bool VPlanTransforms::handleEarlyExits(VPlan &Plan, UncountableExitStyle Style,
TheLoop, PSE, DT, AC, Style);
}
+ // A scalar epilogue is required if vectorized loop includes countable early
+ // exits.
+ if (MiddleVPBB->getNumSuccessors() == 2) {
----------------
fhahn wrote:
Thanks for checking. It may be worth adding a new helper to at least share the duplciated code for updating the branch condition + asserts.
https://github.com/llvm/llvm-project/pull/213904
More information about the llvm-commits
mailing list