[llvm] [LV] NFCI: Create VPExpressions in transformToPartialReductions. (PR #182863)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 01:52:14 PDT 2026


================
@@ -6170,6 +6180,11 @@ static void transformToPartialReduction(const VPPartialReductionChain &Chain,
     ExitValue->replaceAllUsesWith(PartialRed);
   WidenRecipe->replaceAllUsesWith(PartialRed);
 
+  // For cost-model purposes, see if we can fold this into a VPExpression.
+  VPExpressionRecipe *E = createPartialReductionExpression(PartialRed);
----------------
fhahn wrote:

```suggestion
  // For cost-model purposes, fold this into a VPExpression.
  VPExpressionRecipe *E = createPartialReductionExpression(PartialRed);
```

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


More information about the llvm-commits mailing list