[llvm] [VPlan] First step towards VPlan cost modeling (LegacyCM in CostCtx) (PR #92555)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 27 02:59:38 PDT 2024
================
@@ -344,6 +344,16 @@ class LoopVectorizationPlanner {
/// A builder used to construct the current plan.
VPBuilder Builder;
+ /// Computes the cost of \p Plan for vectorization factor \p VF.
+ ///
+ /// The current implementation requires access to the
+ /// LoopVectorizationLegality to handle inductions and reductions, which is
+ /// why it is kept separate from the VPlan-only cost infrastructure.
+ ///
+ /// TODO: Move to VPlan::computeCost once the use of the legacy cost model
----------------
ayalz wrote:
```suggestion
/// TODO: Move to VPlan::computeCost once the use of Legal
```
https://github.com/llvm/llvm-project/pull/92555
More information about the llvm-commits
mailing list