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

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 22 05:56:24 PDT 2025


================
@@ -2797,25 +2796,42 @@ VPExpressionRecipe::VPExpressionRecipe(
       R->removeFromParent();
   }
 
+  // Keep track of how many instances of each recipe occur in the recipe list
+  SmallMapVector<VPSingleDefRecipe *, unsigned, 4> ExpressionRecipeCounts;
----------------
sdesmalen-arm wrote:

I'm a bit worried about a slightly different case, where the same (external) input operand is shared by different expression recipes. I don't think there would be an easy way to test that at the moment, but I can see that happening with other kinds of expressions in the future.

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


More information about the llvm-commits mailing list