There is a case when a function has pseudo probe intrinsics but the module it resides does not have the probe desc. This could happen when the current module is not built with -fpseudo-probe-for-profiling while a function in it calls some other function from a probed module. In thinLTO mode, the callee function could be imported and inlined into the current function.
While this is undefined behavior, I'm fixing the asm printer to not ICE and warn user about this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It is possible to let users know when this happens? Ideally it's something user need to fix - pass flags consistently.
llvm/lib/Linker/IRMover.cpp | ||
---|---|---|
1238–1242 | Suggest rephrase the warning message with something like: Pseudo-probe ignored: source module (<module name>) is compiled with -fpseudo-probe-for-profiling while destination module (<module name>) is not. |
llvm/lib/Linker/IRMover.cpp | ||
---|---|---|
1238–1242 | Sounds good. |
Suggest rephrase the warning message with something like: Pseudo-probe ignored: source module (<module name>) is compiled with -fpseudo-probe-for-profiling while destination module (<module name>) is not.