[llvm-branch-commits] [llvm] [BOLT] Match blocks with pseudo probes (PR #99891)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 24 15:14:17 PDT 2024


================
@@ -45,6 +45,8 @@ namespace opts {
 
 extern cl::opt<bool> TimeRewrite;
 extern cl::OptionCategory BoltOptCategory;
+extern cl::opt<unsigned> Verbosity;
+extern cl::opt<bool> ProfileUsePseudoProbes;
----------------
aaupov wrote:

> The profile (not stale matching) is clearly using probe as probe exists in profile

But in a similar way, the profile can contain BB hashes, but they won't be used unless `-infer-stale-profile` is set. (We produce them unconditionally so there's no corresponding generation flag).

There's no use of probes outside stale matching.

The confusion argument for me is flipped – if there were separate flags for generation and consumption for probes. It's as if we had `ProfileEmitDFSIndices` and `ProfileAssumeDFSIndices` instead of `ProfileUseDFS` which covers both.

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


More information about the llvm-branch-commits mailing list