[llvm] [LV] Only require a scalar epilogue for interleave groups actually widened as interleave accesses (PR #213904)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 06:34:58 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) {
----------------
Mel-Chen wrote:

I'm a bit confused about this question. Just to confirm I understand your point, does having a countable early exit always guarantee that the middle block has exactly two successors?

https://github.com/llvm/llvm-project/pull/213904


More information about the llvm-commits mailing list