From 7fbee0731b14b5bf392a4254f5cd84685ab517da Mon Sep 17 00:00:00 2001 From: jeffhao Date: Fri, 24 Aug 2012 17:56:54 -0700 Subject: Preliminary changes to allow mips target to build. It compiles, but it doesn't work yet. Change-Id: I2973a03bd956d8d398b9cfd1047e66fbf3ff439c --- src/compiler/Frontend.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/compiler/Frontend.cc') diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index 3aedbe9b62..78c0f94313 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -801,6 +801,21 @@ CompiledMethod* oatCompileMethod(Compiler& compiler, //cUnit->enableDebug |= (1 << kDebugDumpBitcodeFile); } #endif + if (cUnit->instructionSet == kMips) { + // Disable some optimizations for mips for now + cUnit->disableOpt |= ( + (1 << kLoadStoreElimination) | + (1 << kLoadHoisting) | + (1 << kSuppressLoads) | + (1 << kNullCheckElimination) | + (1 << kPromoteRegs) | + (1 << kTrackLiveTemps) | + (1 << kSkipLargeMethodOptimization) | + (1 << kSafeOptimizations) | + (1 << kBBOpt) | + (1 << kMatch) | + (1 << kPromoteCompilerTemps)); + } /* Are we generating code for the debugger? */ if (compiler.IsDebuggingSupported()) { cUnit->genDebugger = true; -- cgit v1.2.3-59-g8ed1b