[llvm] [PseudoProbe] Extend to skip instrumenting probe into the dests of invoke (PR #79919)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 17:42:40 PST 2024
================
@@ -173,21 +173,98 @@ SampleProfileProber::SampleProfileProber(Function &Func,
BlockProbeIds.clear();
CallProbeIds.clear();
LastProbeId = (uint32_t)PseudoProbeReservedId::Last;
- computeProbeIdForBlocks();
- computeProbeIdForCallsites();
- computeCFGHash();
+
+ DenseSet<BasicBlock *> BlocksToIgnoreProbe;
+ DenseSet<BasicBlock *> BlocksToIgnoreCall;
----------------
wlei-llvm wrote:
> What's the main reason to split these into two containers? Is that because for "NewSplit" blocks, we want to ignore block probe but we still want to have call probe for calls from those blocks?
Exactly, renamed, thanks for the suggestion.
https://github.com/llvm/llvm-project/pull/79919
More information about the llvm-commits
mailing list