[PATCH] D101195: [CSSPGO] Fix missing debug info of dangling pseudo probe
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 23 13:52:29 PDT 2021
wlei added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2386
if (!SpeculatedStoreValue || &I != SpeculatedStore)
I.setDebugLoc(DebugLoc());
I.dropUnknownNonDebugMetadata();
----------------
wenlei wrote:
> wlei wrote:
> > wenlei wrote:
> > > can we assert we are not dropping dbg metadata for any probes?
> > Good point, assertion added.
> `assert("..")` will not fire, i guess you meant something like `llvm_unreachable` here?. Though I think the convention is like this:
>
> ```
> assert(!isa<PseudoProbeInst>(I) && "Should not drop debug info from any pseudo probes.");
> ```
Oops, just tried this way but made a naive mistake...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101195/new/
https://reviews.llvm.org/D101195
More information about the llvm-commits
mailing list