[llvm] [VPlan] Unroll VPReplicateRecipe by VF. (PR #142433)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 22 04:26:45 PDT 2025


================
@@ -224,6 +224,9 @@ struct Recipe_match {
     if ((!matchRecipeAndOpcode<RecipeTys>(R) && ...))
       return false;
 
+    auto *VPI = dyn_cast<VPInstruction>(R);
+    if (VPI && VPI->getOpcode() == VPInstruction::BuildVector)
+      return true;
----------------
ayalz wrote:

```suggestion
    // Finally match operands, except for BuildVector which is matched w/o checking its operands.
    auto *VPI = dyn_cast<VPInstruction>(R);
    if (VPI && VPI->getOpcode() == VPInstruction::BuildVector)
      return true;
```

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


More information about the llvm-commits mailing list