From 35a1479ab434257e9db629fda5f4ca96bfbef3fc Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 8 Feb 2024 21:20:51 +0000 Subject: Revert "Only compile optimized if it is useful." This reverts commit e872656585952f993eb84633a66e0aedcbdf52ac. Reason for revert: Test failures Change-Id: I05aadb695b87f661063ff87f63eb68048d16e050 --- compiler/optimizing/profiling_info_builder.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler/optimizing/profiling_info_builder.cc') 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; } -- cgit v1.2.3-59-g8ed1b