[all-commits] [llvm/llvm-project] 6f6159: [InstrProf] Add option to avoid instrumenting smal...
Ellis Hoag via All-commits
all-commits at lists.llvm.org
Wed Aug 17 06:47:28 PDT 2022
Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
Date: 2022-08-17 (Wed, 17 Aug 2022)
[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 .
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D131816
More information about the All-commits