summaryrefslogtreecommitdiff
path: root/compiler/dex/frontend.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2014-06-13 22:05:35 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-06-12 03:32:07 +0000
commit8cd927c8f6911cfb6118b8c54550959c09eb84f8 (patch)
treee228277223b4d58feb34c12da6117de3059ee21f /compiler/dex/frontend.cc
parent49a1b407f4947f9611838de554dbdaa2d45f8208 (diff)
parent7e399fd3a99ba9c9dbfafdf14f75dd318fa7d454 (diff)
Merge "x86_64: Disable all optimizations and fix bugs"
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r--compiler/dex/frontend.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc
index d45379712b..035bd66223 100644
--- a/compiler/dex/frontend.cc
+++ b/compiler/dex/frontend.cc
@@ -885,15 +885,13 @@ static CompiledMethod* CompileMethod(CompilerDriver& driver,
(1 << kBBOpt) |
(1 << kMatch) |
(1 << kPromoteCompilerTemps));
- }
-
- if (cu.instruction_set == kArm64 || cu.instruction_set == kX86_64) {
- // TODO(Arm64): enable optimizations once backend is mature enough.
+ } else if (cu.instruction_set == kX86_64) {
// TODO(X86_64): enable optimizations once backend is mature enough.
cu.disable_opt = ~(uint32_t)0;
- if (cu.instruction_set == kArm64) {
- cu.enable_debug |= (1 << kDebugCodegenDump);
- }
+ } else if (cu.instruction_set == kArm64) {
+ // TODO(Arm64): enable optimizations once backend is mature enough.
+ cu.disable_opt = ~(uint32_t)0;
+ cu.enable_debug |= (1 << kDebugCodegenDump);
}
cu.StartTimingSplit("BuildMIRGraph");