[llvm] [VPlan] Support scalable VFs in narrowInterleaveGroups. (PR #154842)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 13:51:18 PDT 2025


================
@@ -3574,7 +3574,7 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF,
       continue;
 
     // Bail out on non-consecutive interleave groups.
-    if (!isConsecutiveInterleaveGroup(InterleaveR, FixedVF, TypeInfo,
+    if (!isConsecutiveInterleaveGroup(InterleaveR, VFMinVal, TypeInfo,
----------------
fhahn wrote:

Yes at the moment this will only transform fixed vectors, if the interleave group processes exactly VF elements, without gaps. It can be extended to handle multiples of a fixed VF, but that should probably be a separate change.

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


More information about the llvm-commits mailing list