diff options
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r-- | compiler/dex/frontend.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc index ca15964b92..d40917bb66 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"); |