[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:29:58 PDT 2026


================
@@ -6690,21 +6690,6 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlan(VPlanPtr Plan,
   // visit each basic block after having visited its predecessor basic blocks.
   // ---------------------------------------------------------------------------
 
-  bool RequiresScalarEpilogueCheck =
-      LoopVectorizationPlanner::getDecisionAndClampRange(
-          [this](ElementCount VF) {
-            return !CM.requiresScalarEpilogue(VF.isVector());
----------------
Mel-Chen wrote:

Unfortunately, that won't work. The root cause of this issue is failing to consider that an access won't be widened into an interleaved access, so making changes on the analysis side alone cannot resolve the problem.

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


More information about the llvm-commits mailing list