summaryrefslogtreecommitdiffstats
path: root/compiler/dex/frontend.cc
diff options
context:
space:
mode:
authorDmitry Petrochenko <dmitry.petrochenko@intel.com>2014-06-13 14:51:01 +0700
committerDmitry Petrochenko <dmitry.petrochenko@intel.com>2014-06-19 02:47:09 +0700
commite4a6bd7550508e96aeb575e5aa1faa6fef35e20d (patch)
tree25015e59ddfb8893c04028b49465a4d246386cfd /compiler/dex/frontend.cc
parent9b743ef7955a70952f3e147f9ce8d9d47c9051f9 (diff)
downloadandroid_art-e4a6bd7550508e96aeb575e5aa1faa6fef35e20d.tar.gz
android_art-e4a6bd7550508e96aeb575e5aa1faa6fef35e20d.tar.bz2
android_art-e4a6bd7550508e96aeb575e5aa1faa6fef35e20d.zip
x86_64: Enable some optimizations
Except kLoadStoreElimination and kPromoteRegs. Change-Id: Iaebf6652641fe32c9e9b21469e4f898af2d67250 Signed-off-by: Dmitry Petrochenko <dmitry.petrochenko@intel.com>
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r--compiler/dex/frontend.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc
index b8d190a9eb..9eec91bf6c 100644
--- a/compiler/dex/frontend.cc
+++ b/compiler/dex/frontend.cc
@@ -873,7 +873,9 @@ static CompiledMethod* CompileMethod(CompilerDriver& driver,
(1 << kPromoteCompilerTemps));
} else if (cu.instruction_set == kX86_64) {
// TODO(X86_64): enable optimizations once backend is mature enough.
- cu.disable_opt = ~(uint32_t)0;
+ cu.disable_opt |= (
+ (1 << kLoadStoreElimination) |
+ (1 << kPromoteRegs));
} else if (cu.instruction_set == kArm64) {
// TODO(Arm64): enable optimizations once backend is mature enough.
cu.disable_opt = ~(uint32_t)0;