Tweak ThinLTO inling heuristics in absense of PGO profile
We previously disabled inlining and unrolling completely during ThinLTO in absense of PGO profile. For global ThinLTO, we want to better balance binary size and performance. We evaluated a number of combination of heuristics with global ThinLTO configuration: binary size change no LTO baseline no inline, no unroll -0.54% no inline, unroll -0.50% import-instr-limit=5, unroll +0.02% import-instr-limit=10, unroll +0.13% Loop unrolling does not contribute much to the binary size, therefore it is re-enabled. import-instr-limit=5 balances the binary size savings from ThinLTO and size incrase due to additional optimisation. Bug: 78485207 Bug: 169004486 Test: TreeHugger Change-Id: I1c21153605e2ae42daa8857b06e27c081ee8ad85
Loading
Please register or sign in to comment