[llvm] [VPlan] First step towards VPlan cost modeling (LegacyCM in CostCtx) (PR #92555)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 14:30:15 PDT 2024
================
@@ -738,6 +760,10 @@ class VPRecipeBase : public ilist_node_with_parent<VPRecipeBase, VPBasicBlock>,
/// this VPRecipe, thereby "executing" the VPlan.
virtual void execute(VPTransformState &State) = 0;
+ /// Compute the cost for the recipe. Returns an invalid cost if the recipe
+ /// does not yet implement computing the cost.
----------------
fhahn wrote:
Updated to reflect the fact that the default implementation now returns the cost via the legacy CM, thanks!
https://github.com/llvm/llvm-project/pull/92555
More information about the llvm-commits
mailing list