diff options
| author | 2017-01-25 22:06:53 +0000 | |
|---|---|---|
| committer | 2017-01-26 17:44:50 +0000 | |
| commit | 3eba863e41d531340392d9ec64e17963ac898d81 (patch) | |
| tree | e7cb5bf939216ca14e5025acb96b4ae38e5dcebd /compiler/driver/compiler_driver.cc | |
| parent | 727e9110243392bd8599ae8ae73b1a169668ded7 (diff) | |
Make verify-profile not look at the profile.
It doesn't work well with vdex. In follow-up CLs,
I'll just remove/rename  the filter.
For the record, compiling sheets on an angler:
verify-profile: dex2oat took 5.383s (6.672s cpu)
vdex: dex2oat took 1.686s (1.562s cpu)
bug: 34715556
bug: 34691602
bug: 34691854
Test: test-art-host
Change-Id: I286637a3d7ebe1b18985e96845b0b8c4f67a1a39
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 24 | 
1 files changed, 0 insertions, 24 deletions
| diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 320304873d..bf065ee4ba 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1062,23 +1062,6 @@ bool CompilerDriver::ShouldCompileBasedOnProfile(const MethodReference& method_r    return result;  } -bool CompilerDriver::ShouldVerifyClassBasedOnProfile(const DexFile& dex_file, -                                                     uint16_t class_idx) const { -  if (!compiler_options_->VerifyOnlyProfile()) { -    // No profile, verify everything. -    return true; -  } -  DCHECK(profile_compilation_info_ != nullptr); -  const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_idx); -  dex::TypeIndex type_idx = class_def.class_idx_; -  bool result = profile_compilation_info_->ContainsClass(dex_file, type_idx); -  if (kDebugProfileGuidedCompilation) { -    LOG(INFO) << "[ProfileGuidedCompilation] " << (result ? "Verified" : "Skipped") << " method:" -        << dex_file.GetClassDescriptor(class_def); -  } -  return result; -} -  class ResolveCatchBlockExceptionsClassVisitor : public ClassVisitor {   public:    explicit ResolveCatchBlockExceptionsClassVisitor( @@ -2126,13 +2109,6 @@ class VerifyClassVisitor : public CompilationVisitor {      ATRACE_CALL();      ScopedObjectAccess soa(Thread::Current());      const DexFile& dex_file = *manager_->GetDexFile(); -    if (!manager_->GetCompiler()->ShouldVerifyClassBasedOnProfile(dex_file, class_def_index)) { -      // Skip verification since the class is not in the profile, and let the VerifierDeps know -      // that the class will need to be verified at runtime. -      verifier::VerifierDeps::MaybeRecordVerificationStatus( -          dex_file, dex::TypeIndex(class_def_index), verifier::MethodVerifier::kSoftFailure); -      return; -    }      const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index);      const char* descriptor = dex_file.GetClassDescriptor(class_def);      ClassLinker* class_linker = manager_->GetClassLinker(); |