[llvm-branch-commits] [llvm] [BOLT] Add profile density computation (PR #101094)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 29 19:01:23 PDT 2024


================
@@ -223,6 +223,22 @@ static cl::opt<unsigned> TopCalledLimit(
              "functions section"),
     cl::init(100), cl::Hidden, cl::cat(BoltCategory));
 
+// Profile density options, synced with llvm-profgen/ProfileGenerator.cpp
+static cl::opt<bool> ShowDensity("show-density", cl::init(false),
----------------
aaupov wrote:

I see. We don't report density by default but I'm not against it considering it's pretty cheap to calculate.

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


More information about the llvm-branch-commits mailing list