summaryrefslogtreecommitdiffstats
path: root/compiler/sea_ir/frontend.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-08-29 18:46:00 -0700
committerMathieu Chartier <mathieuc@google.com>2013-09-03 17:44:20 -0700
commit193bad9b9cfd10642043fa2ebbfc68bd5f9ede4b (patch)
tree0fc125adc74316df802b76889a780decd5b8236b /compiler/sea_ir/frontend.cc
parent179486aee731f734207873244542993ed4bcff21 (diff)
downloadart-193bad9b9cfd10642043fa2ebbfc68bd5f9ede4b.zip
art-193bad9b9cfd10642043fa2ebbfc68bd5f9ede4b.tar.gz
art-193bad9b9cfd10642043fa2ebbfc68bd5f9ede4b.tar.bz2
Multi threaded hashed deduplication during compilation.
Moved deduplication to be in the compiler driver instead of oat writer. This enables deduplication to be performed on multiple threads. Also added a hash function to avoid excessive comparison of byte arrays. Improvements: Before (alloats host): real 1m6.967s user 4m22.940s sys 1m22.610s Thinkfree.apk (target mako): 0m23.74s real 0m50.95s user 0m9.50s system 0m24.62s real 0m50.61s user 0m10.07s system 0m24.22s real 0m51.44s user 0m10.09s system 0m23.70s real 0m51.05s user 0m9.97s system 0m23.50s real 0m50.74s user 0m10.63s system After (alloats host): real 1m5.705s user 4m44.030s sys 1m29.990s Thinkfree.apk (target mako): 0m23.32s real 0m51.38s user 0m10.00s system 0m23.49s real 0m51.20s user 0m9.80s system 0m23.18s real 0m50.80s user 0m9.77s system 0m23.52s real 0m51.22s user 0m10.02s system 0m23.50s real 0m51.55s user 0m9.46s system Bug: 10552630 Change-Id: Ia6d06a747b86b0bfc4473b3cd68f8ce1a1c7eb22
Diffstat (limited to 'compiler/sea_ir/frontend.cc')
-rw-r--r--compiler/sea_ir/frontend.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/sea_ir/frontend.cc b/compiler/sea_ir/frontend.cc
index 6efc103..93f6f25 100644
--- a/compiler/sea_ir/frontend.cc
+++ b/compiler/sea_ir/frontend.cc
@@ -57,11 +57,9 @@ static CompiledMethod* CompileMethodWithSeaIr(CompilerDriver& compiler,
dc.DumpSea(ir_graph, "/tmp/temp.dot", types);
MethodReference mref(&dex_file, method_idx);
std::string llvm_code = llvm_data->GetElf(compiler.GetInstructionSet());
- CompiledMethod* compiled_method = new CompiledMethod(
- compiler.GetInstructionSet(),
- llvm_code,
- *verifier::MethodVerifier::GetDexGcMap(mref),
- symbol);
+ CompiledMethod* compiled_method =
+ new CompiledMethod(compiler, compiler.GetInstructionSet(), llvm_code,
+ *verifier::MethodVerifier::GetDexGcMap(mref), symbol);
LOG(INFO) << "Compiled SEA IR method " << PrettyMethod(method_idx, dex_file) << ".";
return compiled_method;
}