summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2017-06-07 15:30:31 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-06-07 15:30:31 +0000
commit56911737e7fcf4ff594f552857e7a2f56b40a3b9 (patch)
tree3d2dedad6a8a18d43ad528b7f50fd081fec9e168 /compiler/driver/compiler_driver.cc
parent05e60470e68d50c48e07b835c2b1eadb32e99fd0 (diff)
parent7b135c80fedea16844892527555b144c64651a65 (diff)
Merge "Only compile hot methods"
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc5
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] "