summaryrefslogtreecommitdiff
path: root/src/compiler/Frontend.cc
diff options
context:
space:
mode:
author jeffhao <jeffhao@google.com> 2012-08-24 17:56:54 -0700
committer jeffhao <jeffhao@google.com> 2012-08-27 11:33:05 -0700
commit7fbee0731b14b5bf392a4254f5cd84685ab517da (patch)
treeb24cf6d9eed7935e3b26d63cf2292fd8c008005b /src/compiler/Frontend.cc
parentf3a26411e0e8b56b64d184d3e946e72f9c31e4c7 (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.cc15
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;