[llvm] [LV] Only require a scalar epilogue for interleave groups actually widened as interleave accesses (PR #213904)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 04:42:45 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) {
----------------
lukel97 wrote:
Can we pull out vputils::getEarlyExits and just check if it's non empty instead of the check above?
https://github.com/llvm/llvm-project/pull/213904
More information about the llvm-commits
mailing list