[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 11 00:14:35 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:

Do we need to handle this early here or could the code in tryToBuildVPlan also handle this?

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


More information about the llvm-commits mailing list