[llvm] [VPlan] Support multiple F(Max|Min)Num reductions. (PR #161735)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 02:04:06 PST 2025


================
@@ -823,7 +823,7 @@ bool VPlanTransforms::handleMaxMinNumReductions(VPlan &Plan) {
   };
 
   VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
-  VPReductionPHIRecipe *RedPhiR = nullptr;
+  SmallVector<VPReductionPHIRecipe *> ReductionsToConvert;
----------------
ayalz wrote:

```suggestion
  SmallVector<VPReductionPHIRecipe *> MinMaxNumReductionsToHandle;
```

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


More information about the llvm-commits mailing list