[llvm] [LV] Support scalable interleave groups for factors 3, 5, 6 and 7 (PR #141865)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 04:45:12 PDT 2025


================
@@ -3217,6 +3217,62 @@ static Value *createBitOrPointerCast(IRBuilderBase &Builder, Value *V,
   return Builder.CreateBitOrPointerCast(CastVal, DstVTy);
 }
 
+static Intrinsic::ID getInterleaveIntrinsicID(unsigned Factor) {
+  switch (Factor) {
+  case 2:
+    return Intrinsic::vector_interleave2;
+    break;
----------------
fhahn wrote:

```suggestion
    return Intrinsic::vector_interleave2;
```

no break needed after `return`?

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


More information about the llvm-commits mailing list