[llvm] [VPlan] First step towards VPlan cost modeling (LegacyCM in CostCtx) (PR #92555)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 07:47:38 PDT 2024


================
@@ -747,6 +747,71 @@ void VPRegionBlock::execute(VPTransformState *State) {
   State->Instance.reset();
 }
 
+InstructionCost VPBasicBlock::cost(ElementCount VF, VPCostContext &Ctx) {
+  InstructionCost Cost = 0;
+  for (VPRecipeBase &R : *this)
----------------
ayalz wrote:

```suggestion
  for (VPRecipeBase &R : Recipes)
```

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


More information about the llvm-commits mailing list