[llvm] [VPlan] Add transformation to narrow interleave groups. (PR #106441)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 13:41:58 PDT 2024


================
@@ -1623,3 +1661,129 @@ void VPlanTransforms::createInterleaveGroups(
       }
   }
 }
+
+static bool supportedLoad(VPWidenRecipe *R0, VPValue *V, unsigned Idx) {
+  if (auto *W = dyn_cast_or_null<VPWidenLoadRecipe>(V->getDefiningRecipe())) {
+    if (W->getMask())
+      return false;
----------------
alexey-bataev wrote:

```suggestion
    return !W->getMask();
```

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


More information about the llvm-commits mailing list