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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 1 06:17:39 PDT 2024


================
@@ -664,6 +676,9 @@ class VPBlockBase {
   /// the cloned recipes, including all blocks in the single-entry single-exit
   /// region for VPRegionBlocks.
   virtual VPBlockBase *clone() = 0;
+
+  /// Compute the cost of the block.
+  virtual InstructionCost cost(ElementCount VF, VPCostContext &Ctx) = 0;
----------------
fhahn wrote:

Done, thanks!

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


More information about the llvm-commits mailing list