diff options
| author | 2023-09-23 09:55:56 +0000 | |
|---|---|---|
| committer | 2023-09-23 09:55:56 +0000 | |
| commit | 1017823d56e821f29606e5b08f4bf51078c257a9 (patch) | |
| tree | 1ddd5057c16af1e7699863184ed5f950563a2823 /compiler/jit/jit_compiler.cc | |
| parent | c99838dfc0f9198887030e1e00c178e0aacd20d1 (diff) | |
Revert "Add a small pattern matcher to JIT compilation."
This reverts commit c99838dfc0f9198887030e1e00c178e0aacd20d1.
Reason for revert: Fails on luci.
Change-Id: I0bb494fc36de393c5f4a615d325cfda3f9a56551
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
| -rw-r--r-- | compiler/jit/jit_compiler.cc | 14 |
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(); |