[llvm] [LV] Support EVL for partial reduction and VPExpressionRecipe. (PR #205741)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 00:46:17 PDT 2026


================
@@ -3559,18 +3580,23 @@ VPExpressionRecipe::VPExpressionRecipe(
       R->replaceUsesOfWith(LiveIn, Tmp);
 }
 
-void VPExpressionRecipe::decompose() {
-  for (auto *R : ExpressionRecipes)
+SmallVector<VPSingleDefRecipe *> VPExpressionRecipe::decompose() {
+  SmallVector<VPSingleDefRecipe *> InsertedRecipes;
+  for (auto *R : ExpressionRecipes) {
     // Since the list could contain duplicates, make sure the recipe hasn't
     // already been inserted.
-    if (!R->getParent())
+    if (!R->getParent()) {
       R->insertBefore(this);
+      InsertedRecipes.push_back(R);
----------------
ElvisWang123 wrote:

Ah, removed, thanks!

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


More information about the llvm-commits mailing list