diff options
author | 2024-02-08 21:20:51 +0000 | |
---|---|---|
committer | 2024-02-09 09:16:58 +0000 | |
commit | 35a1479ab434257e9db629fda5f4ca96bfbef3fc (patch) | |
tree | 3993d38d279623e86deae3d5b288b3b5c7c5288a /compiler/optimizing/profiling_info_builder.cc | |
parent | ced2fc97ec95f2924059544f13d6ff353973d552 (diff) |
Revert "Only compile optimized if it is useful."
This reverts commit e872656585952f993eb84633a66e0aedcbdf52ac.
Reason for revert: Test failures
Change-Id: I05aadb695b87f661063ff87f63eb68048d16e050
Diffstat (limited to 'compiler/optimizing/profiling_info_builder.cc')
-rw-r--r-- | compiler/optimizing/profiling_info_builder.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/optimizing/profiling_info_builder.cc b/compiler/optimizing/profiling_info_builder.cc index 7faf2bf5be..905d8d0f2f 100644 --- a/compiler/optimizing/profiling_info_builder.cc +++ b/compiler/optimizing/profiling_info_builder.cc @@ -28,7 +28,6 @@ namespace art HIDDEN { void ProfilingInfoBuilder::Run() { - DCHECK(GetGraph()->IsUsefulOptimizing()); DCHECK_EQ(GetGraph()->GetProfilingInfo(), nullptr); // Order does not matter. for (HBasicBlock* block : GetGraph()->GetReversePostOrder()) { @@ -120,12 +119,6 @@ bool ProfilingInfoBuilder::IsInlineCacheUseful(HInvoke* invoke, CodeGenerator* c return false; } } - - if (!codegen->GetGraph()->IsUsefulOptimizing()) { - // Earlier pass knew what the calling target was. No need for an inline - // cache. - return false; - } return true; } |