diff options
author | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-08-17 06:22:50 -0700 |
---|---|---|
committer | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-08-17 06:47:15 -0700 |
commit | 6f61594d8cd4cca559b3c87f2fa47d4bdc017c82 (patch) | |
tree | 08ae3fcd035b82d99f43a80ccec1c6fd9bf8c63f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ab6a6b8e0d48087be531171445425a05fc239377 (diff) | |
download | llvm-6f61594d8cd4cca559b3c87f2fa47d4bdc017c82.zip llvm-6f61594d8cd4cca559b3c87f2fa47d4bdc017c82.tar.gz llvm-6f61594d8cd4cca559b3c87f2fa47d4bdc017c82.tar.bz2 |
[InstrProf] Add option to avoid instrumenting small functions
If a function only has a few instructions, instrumentation can significantly increase the size and performance overhead of that function. Add the `-pgo-function-size-threshold` option to select a size threshold so these small functions are not instrumented.
A similar option `-fxray-instruction-threshold=<N>` is used for XRay to reduce binary size overhead [1].
[1] https://www.llvm.org/docs/XRay.html
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D131816
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions