[llvm] [VPlan] First step towards VPlan cost modeling (LegacyCM in CostCtx) (PR #92555)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun May 26 18:26:40 PDT 2024
================
@@ -344,6 +344,15 @@ 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 legacy cost model 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
+ /// has been retired.
----------------
fhahn wrote:
Updated, thanks!
https://github.com/llvm/llvm-project/pull/92555
More information about the llvm-commits
mailing list