[llvm] [VPlan] Compute interleave count for VPlan. (PR #149702)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 02:52:31 PDT 2025


================
@@ -4866,8 +4865,39 @@ LoopVectorizationCostModel::selectInterleaveCount(VPlan &Plan, ElementCount VF,
 
     // Interleave until store/load ports (estimated by max interleave count) are
     // saturated.
-    unsigned NumStores = Legal->getNumStores();
-    unsigned NumLoads = Legal->getNumLoads();
----------------
ayalz wrote:

Did getNumStores() and getNumLoads() become useless and should be dce'd?

Better outline as a utility of VPlan, or rather of VPRegionBlock, than have it expanded here in LoopVectorize.cpp?

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


More information about the llvm-commits mailing list