diff options
| author | 2017-06-07 15:30:31 +0000 | |
|---|---|---|
| committer | 2017-06-07 15:30:31 +0000 | |
| commit | 56911737e7fcf4ff594f552857e7a2f56b40a3b9 (patch) | |
| tree | 3d2dedad6a8a18d43ad528b7f50fd081fec9e168 /compiler/driver/compiler_driver.cc | |
| parent | 05e60470e68d50c48e07b835c2b1eadb32e99fd0 (diff) | |
| parent | 7b135c80fedea16844892527555b144c64651a65 (diff) | |
Merge "Only compile hot methods"
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 69f853a1c9..29413d9a0a 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1000,8 +1000,9 @@ bool CompilerDriver::ShouldCompileBasedOnProfile(const MethodReference& method_r if (profile_compilation_info_ == nullptr) { return false; } - // TODO: Revisit compiling all startup methods. b/36457259 - bool result = profile_compilation_info_->IsStartupOrHotMethod(method_ref); + // Compile only hot methods, it is the profile saver's job to decide what startup methods to mark + // as hot. + bool result = profile_compilation_info_->ContainsHotMethod(method_ref); if (kDebugProfileGuidedCompilation) { LOG(INFO) << "[ProfileGuidedCompilation] " |