summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2020-09-23 00:54:50 +0800
committerYi Kong <yikong@google.com>2020-09-23 01:32:06 +0800
commit2f5f16d574d522bc5f4f81ee7e1a9cc981340a23 (patch)
treec4e1c662fb153f715fdea3427bff195787091423 /java/java.go
parentc5a0e64d82f158b4d00036bf7d5ba765fdf9c906 (diff)
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
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions