Files
clang-p2996/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Teresa Johnson 26a8664ed4 [MemProf] Handle missing tail call frames (#75823)
If tail call optimization was not disabled for the profiled binary, the
call contexts will be missing frames for tail calls. Handle this by
performing a limited search through tail call edges for the profiled
callee when a discontinuity is detected. The search depth is adjustable
but defaults to 5.

If we are able to identify a short sequence of tail calls, update the
graph for those calls. In the case of ThinLTO, synthesize the necessary
CallsiteInfos for carrying the cloning information to the backends.
2024-01-11 06:57:48 -08:00

201 KiB