[PATCH] D142747: [Pseudo Probe] Do not instrument EH blocks.
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 27 11:55:10 PST 2023
wenlei added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfileProbe.cpp:278-279
+ for (auto *Predecessor : predecessors(Successor)) {
+ if (Predecessor == Successor)
+ continue;
+ if (!EHBlocks.contains(Predecessor)) {
----------------
hoy wrote:
> wenlei wrote:
> > Is this necessary? If Predecessor is non-EH, we will break out the loop later; if it's EH, line 274 should have skipped this Predecessor/Successor already.
> It's necessary if the successor forms a self-loop. In such case, the self back edge should be ignored.
What I'm saying is the self back edge will be ignored without this check (see reasoning above), or am I wrong?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142747/new/
https://reviews.llvm.org/D142747
More information about the llvm-commits
mailing list