diff options
author | Mathieu Chartier <mathieuc@google.com> | 2017-02-17 12:56:25 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2017-02-17 15:54:49 -0800 |
commit | d0af56cdb1eaebea403e382257bdc14d7b7fdaa4 (patch) | |
tree | 56b21fb7d4dcbb0dcab45e07dc48e47a074af6c5 /compiler/common_compiler_test.cc | |
parent | ee883219e329571b9e487b94dc6a675095d088bf (diff) |
Make dex2oat support profiles passed to non profile filters
Using a non profile filter with an input profile should compile
everything but generate an app image and optimize layout based on
the profile.
Change UseProfileGuidedCompilation to use the profile arguments.
Using profile arguments instead of being based on the compiler
filter lets us do full speed compile and layout based on profile.
Fix ShouldCompileBasedOnProfile to use the compiler filter instead
of the existence of a profile.
Fixed gtests.
Test: test-art-host
Bug: 34927277
Change-Id: I325a10d2072ed427bb32f96e4efa54cf81e94ad3
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 2f9164c0e0..d89cdbabf8 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -175,6 +175,7 @@ void CommonCompilerTest::CreateCompilerDriver(Compiler::Kind kind, InstructionSet isa, size_t number_of_threads) { compiler_options_->boot_image_ = true; + compiler_options_->SetCompilerFilter(GetCompilerFilter()); compiler_driver_.reset(new CompilerDriver(compiler_options_.get(), verification_results_.get(), kind, |