diff options
| author | 2012-10-24 12:17:24 -0700 | |
|---|---|---|
| committer | 2012-10-24 12:17:24 -0700 | |
| commit | 9281f004db3f194930ef34d31e5d80c98341f38f (patch) | |
| tree | a3f3b5881696313c0064226e2f2f23c1b57c6f89 /src/compiler/Frontend.cc | |
| parent | d2c8bf4e2f4204fb764100bb2ea99f772b8b5bc6 (diff) | |
Special for monkey debugging
Turn off optimization for a problematic method to see if it
changes monkey behavior. This CL should be reverted after the
monkey run completes.
Change-Id: Id0abc48ae15cf3bf8d0aaf999b2ba803adb788b5
Diffstat (limited to 'src/compiler/Frontend.cc')
| -rw-r--r-- | src/compiler/Frontend.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index 9db23acd20..c19751dfa3 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -857,6 +857,28 @@ CompiledMethod* compileMethod(Compiler& compiler, //cUnit->enableDebug |= (1 << kDebugDumpBitcodeFile); } #endif + +#if 1 +// *** Temporary **** +// For use in debugging issue 7250540. Disable optimization in problem method +// to see if monkey results change. Should be removed after monkey runs +// complete. +if (PrettyMethod(method_idx, dex_file).find("void com.android.inputmethod.keyboard.Key.<init>(android.content.res.Resources, com.android.inputmethod.keyboard.Keyboard$Params, com.android.inputmethod.keyboard.Keyboard$Builder$Row, org.xmlpull.v1.XmlPullParser)") != std::string::npos) { + cUnit->disableOpt |= ( + (1 << kLoadStoreElimination) | + (1 << kLoadHoisting) | + (1 << kSuppressLoads) | + (1 << kNullCheckElimination) | + (1 << kPromoteRegs) | + (1 << kTrackLiveTemps) | + (1 << kSkipLargeMethodOptimization) | + (1 << kSafeOptimizations) | + (1 << kBBOpt) | + (1 << kMatch) | + (1 << kPromoteCompilerTemps)); +} +#endif + if (cUnit->instructionSet == kMips) { // Disable some optimizations for mips for now cUnit->disableOpt |= ( |