[llvm] [VPlan] Implement VPlan-based cost model for VPReduction, VPExtendedReduction and VPMulAccumulateReduction. (NFC) (PR #113903)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 13:24:34 PDT 2025


================
@@ -782,19 +782,25 @@ Value *VPInstruction::generate(VPTransformState &State) {
 InstructionCost VPInstruction::computeCost(ElementCount VF,
                                            VPCostContext &Ctx) const {
   if (Instruction::isBinaryOp(getOpcode())) {
+
----------------
fhahn wrote:

```suggestion
```

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


More information about the llvm-commits mailing list