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

via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 05:04:47 PDT 2024


================
@@ -1813,6 +1810,10 @@ class LoopVectorizationCostModel {
   }
 
 public:
+  /// Returns the execution time cost of an instruction for a given vector
+  /// width. Vector width of one means scalar.
+  VectorizationCostTy getInstructionCost(Instruction *I, ElementCount VF);
+
----------------
ayalz wrote:

nit: hoist this to the public methods area above, along with getReductionCost(), rather than below to the public fields area here?

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


More information about the llvm-commits mailing list