[llvm] [LV] Keep duplicate recipes in VPExpressionRecipe (PR #156976)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 26 02:13:34 PDT 2025
================
@@ -3013,8 +3014,11 @@ class VPExpressionRecipe : public VPSingleDefRecipe {
{Ext0, Ext1, Mul, Red}) {}
~VPExpressionRecipe() override {
- for (auto *R : reverse(ExpressionRecipes))
- delete R;
+ SmallSet<VPSingleDefRecipe *, 4> ExpressionRecipesSeen;
+ for (auto *R : reverse(ExpressionRecipes)) {
+ if (ExpressionRecipesSeen.insert(R).second)
----------------
sdesmalen-arm wrote:
This is not done?
https://github.com/llvm/llvm-project/pull/156976
More information about the llvm-commits
mailing list