[llvm] [VPlan] First step towards VPlan cost modeling. (PR #92555)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 14:39:06 PDT 2024
================
@@ -7300,6 +7295,161 @@ LoopVectorizationPlanner::plan(ElementCount UserVF, unsigned UserIC) {
return VF;
}
+InstructionCost VPCostContext::getLegacyCost(Instruction *UI,
+ ElementCount VF) const {
+ return CM.getInstructionCost(UI, VF).first;
+}
+
+InstructionCost VPCostContext::getLoopExitCost(ElementCount VF) {
----------------
ayalz wrote:
Should VPCostContext provide additional methods addressing the other pre-computation cases?
https://github.com/llvm/llvm-project/pull/92555
More information about the llvm-commits
mailing list