aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/CompilerCodegen.h
diff options
context:
space:
mode:
authorBill Buzbee <buzbee@google.com>2010-03-02 16:14:41 -0800
committerBill Buzbee <buzbee@google.com>2010-03-03 15:13:17 -0800
commit1f74863d3e0f19930818398f375ebf1cf2d78969 (patch)
tree4e646a4e73cae7d5e98c621d1cc1aa330a466cf9 /vm/compiler/codegen/CompilerCodegen.h
parent10ebc7d0b84dcb98e1a7eeac96ef06acdfc8d184 (diff)
Jit: Sapphire tuning - mostly scheduling.
Re-enabled load/store motion that had inadvertently been turned off for non-armv7 targets. Tagged memory references with the kind of memory they touch (Dalvik frame, literal pool, heap) to enable more aggressive load hoisting. Eliminated some largely duplicate code in the target specific files. Reworked temp register allocation code to allocate next temp round-robin (to improve scheduling opportunities). Overall, nice gain for Sapphire. Shows 5% to 15% on some benchmarks, and measurable improvements for Passion.
Diffstat (limited to 'vm/compiler/codegen/CompilerCodegen.h')
-rw-r--r--vm/compiler/codegen/CompilerCodegen.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/compiler/codegen/CompilerCodegen.h b/vm/compiler/codegen/CompilerCodegen.h
index 4a27a670f..06fd41090 100644
--- a/vm/compiler/codegen/CompilerCodegen.h
+++ b/vm/compiler/codegen/CompilerCodegen.h
@@ -58,4 +58,7 @@ JitInstructionSetType dvmCompilerInstructionSet(void);
*/
bool dvmCompilerArchVariantInit(void);
+/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
+int dvmCompilerTargetOptHint(int key);
+
#endif /* _DALVIK_VM_COMPILERCODEGEN_H_ */