From bd3fc039058aef4fe48c343a7b8be2a544236abb Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 3 Oct 2023 08:49:13 +0000 Subject: Revert Reland "Add a small pattern matcher to JIT compilation." This reverts commit f221e75a1abbddef0bc319062db9953a44a2ada7. Reason for revert: still luci failures Change-Id: I4b3bd97305f6ef3dfd81becbb4fdad3f55e71029 --- compiler/jit/jit_compiler.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'compiler/jit/jit_compiler.cc') diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index aafdfcf22e..e67236769e 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -33,7 +33,6 @@ #include "jit/jit.h" #include "jit/jit_code_cache.h" #include "jit/jit_logger.h" -#include "jit/small_pattern_matcher.h" namespace art HIDDEN { namespace jit { @@ -182,19 +181,6 @@ bool JitCompiler::CompileMethod( DCHECK(!method->IsProxyMethod()); DCHECK(method->GetDeclaringClass()->IsResolved()); - // Try to pattern match the method. Only on arm and arm64 for now as we have - // sufficiently similar calling convention between C++ and managed code. - if (kRuntimeISA == InstructionSet::kArm || kRuntimeISA == InstructionSet::kArm64) { - if (!GetCompilerOptions().GetDebuggable() && compilation_kind == CompilationKind::kBaseline) { - const void* pattern = SmallPatternMatcher::TryMatch(method); - if (pattern != nullptr) { - VLOG(jit) << "Successfully pattern matched " << method->PrettyMethod(); - Runtime::Current()->GetInstrumentation()->UpdateMethodsCode(method, pattern); - return true; - } - } - } - TimingLogger logger( "JIT compiler timing logger", true, VLOG_IS_ON(jit), TimingLogger::TimingKind::kThreadCpu); self->AssertNoPendingException(); -- cgit v1.2.3-59-g8ed1b