[llvm] [VPlan] Compute scalar cost based on VPlan0 instead of legacy CM. (PR #196845)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 07:46:35 PDT 2026
================
@@ -5516,6 +5474,34 @@ LoopVectorizationPlanner::precomputeCosts(VPlan &Plan, ElementCount VF,
return Cost;
}
+/// Returns the frequency with which \p VPBB executes, as recorded on its
+/// recipes by VPlanTransforms::recordExecutionFrequencies. All recipes of a
+/// block share the same frequency, and blocks that always or never execute
+/// carry none. \p VPBB must be part of a plain CFG.
+static std::optional<VPExecutionFrequency>
+getRecordedExecutionFrequency(const VPBasicBlock *VPBB) {
----------------
fhahn wrote:
Done in https://github.com/llvm/llvm-project/pull/225414, thanks
https://github.com/llvm/llvm-project/pull/196845
More information about the llvm-commits
mailing list