From 8a608fab3f7479db4b21e7ad13b8f69c21658d32 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 29 Nov 2021 14:47:21 +0000 Subject: Handle baseline/optimized compilation kind in the runtime. It used to be adjusted in the compiler, but that does not work anymore as the compiler now always requests a baseline compilation to have a profiling info. Test: 457-regs Bug: 146423102 Change-Id: I522bc515ef1c6f8737ada311265a6f8e0f4db3fd --- compiler/optimizing/optimizing_compiler.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 10b59d2277..18e0512c6e 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1213,11 +1213,6 @@ bool OptimizingCompiler::JitCompile(Thread* self, CompilationKind compilation_kind, jit::JitLogger* jit_logger) { const CompilerOptions& compiler_options = GetCompilerOptions(); - // If the baseline flag was explicitly passed, change the compilation kind - // from optimized to baseline. - if (compiler_options.IsBaseline() && compilation_kind == CompilationKind::kOptimized) { - compilation_kind = CompilationKind::kBaseline; - } DCHECK(compiler_options.IsJitCompiler()); DCHECK_EQ(compiler_options.IsJitCompilerForSharedCode(), code_cache->IsSharedRegion(*region)); StackHandleScope<3> hs(self); -- cgit v1.2.3-59-g8ed1b