Enable PGO and ThinLTO for libhwbinder
Libhwbinder performance can benefit from PGO and ThinLTO.
Profiles for PGO are stored at toolchain/pgo_profiles/hwbinder, and
ThinLTO is applied to libhwbinder and all its static dependencies.
PGO+ThinLTO provides a more than 7% performance improvement on hwbinder
benchmark as well as on hwbinderthroughput test. No significant code
size regression (less than 0.5%). Experiments taken on marlin devices.
Test: Build and run benchmarks with PGO and ThinLTO properties.
Bug: http://b/62839002
Change-Id: Ibb9943757e39527bd2884fe0b3ffaf9be0534572
1 file changed