llvm-project
e7aed23d - [ctxprof] Handle instrumenting functions with `musttail` calls (#135121)

Commit
1 year ago
[ctxprof] Handle instrumenting functions with `musttail` calls (#135121) Functions with `musttail` calls can't be roots because we can't instrument their `ret` to release the context. This patch tags their `CtxRoot` field in their `FunctionData`. In compiler-rt we then know not to allow such functions become roots, and also not confuse `CtxRoot == 0x1` with there being a context root. Currently we also lose the context tree under such cases. We can, in a subsequent patch, have the root detector search past these functions.
Author
Parents
Loading