summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2023-10-03 08:49:13 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-10-03 12:02:21 +0000
commitbd3fc039058aef4fe48c343a7b8be2a544236abb (patch)
treeaf4c35890e243898ec00f2b8bb7ad252e04e4648 /compiler/jit/jit_compiler.cc
parent81d73d78fc65362c005cc82b75d601e2fd10b688 (diff)
Revert Reland "Add a small pattern matcher to JIT compilation."
This reverts commit f221e75a1abbddef0bc319062db9953a44a2ada7. Reason for revert: still luci failures Change-Id: I4b3bd97305f6ef3dfd81becbb4fdad3f55e71029
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
-rw-r--r--compiler/jit/jit_compiler.cc14
1 files changed, 0 insertions, 14 deletions
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();