[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 08:39:12 PDT 2024


================
@@ -1752,7 +1758,7 @@ class VPVectorPointerRecipe : public VPRecipeWithIRFlags {
   bool onlyFirstPartUsed(const VPValue *Op) const override {
     assert(is_contained(operands(), Op) &&
            "Op must be an operand of the recipe");
-    assert(getNumOperands() == 1 && "must have a single operand");
+    assert(getNumOperands() <= 2 && "must have a single operand");
----------------
ayalz wrote:

```suggestion
    assert(getNumOperands() <= 2 && "must have at most two operands");
```

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


More information about the llvm-commits mailing list