Turn on new pass manager for PGO projects

With new pass manager, dex2oat benchmark showed 1.61% performance
improvement though binary size saw an increase of 3.37%.

For Googlers, detailed benchmark results are in go/android-pgo-npm.

Test: m checkbuild
Bug: 118894695
Change-Id: I1687886acac7f61e67265a9c73997fb241ad31e6
This commit is contained in:
Yi Kong
2019-03-21 14:28:13 -07:00
parent f8d3be9cb7
commit 69c1ed91d8

View File

@@ -27,8 +27,11 @@ import (
var (
// Add flags to ignore warnings that profiles are old or missing for
// some functions
profileUseOtherFlags = []string{"-Wno-backend-plugin"}
// some functions, and turn on the experimental new pass manager.
profileUseOtherFlags = []string{
"-Wno-backend-plugin",
"-fexperimental-new-pass-manager",
}
globalPgoProfileProjects = []string{
"toolchain/pgo-profiles",