diff options
| author | 2012-08-24 17:56:54 -0700 | |
|---|---|---|
| committer | 2012-08-27 11:33:05 -0700 | |
| commit | 7fbee0731b14b5bf392a4254f5cd84685ab517da (patch) | |
| tree | b24cf6d9eed7935e3b26d63cf2292fd8c008005b /src/compiler/Frontend.cc | |
| parent | f3a26411e0e8b56b64d184d3e946e72f9c31e4c7 (diff) | |
Preliminary changes to allow mips target to build.
It compiles, but it doesn't work yet.
Change-Id: I2973a03bd956d8d398b9cfd1047e66fbf3ff439c
Diffstat (limited to 'src/compiler/Frontend.cc')
| -rw-r--r-- | src/compiler/Frontend.cc | 15 |
1 files changed, 15 insertions, 0 deletions
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; |