[llvm] [LV] Keep duplicate recipes in VPExpressionRecipe (PR #156976)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 01:57:56 PDT 2025


================
@@ -3013,8 +3015,11 @@ class VPExpressionRecipe : public VPSingleDefRecipe {
                            {Ext0, Ext1, Mul, Red}) {}
 
   ~VPExpressionRecipe() override {
-    for (auto *R : reverse(ExpressionRecipes))
-      delete R;
+    SmallSet<VPSingleDefRecipe *, 4> ExpressionRecipesSeen;
----------------
fhahn wrote:

```suggestion
    SmallSetPtrSet<VPSingleDefRecipe *, 4> ExpressionRecipesSeen;
```

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


More information about the llvm-commits mailing list