From 9281f004db3f194930ef34d31e5d80c98341f38f Mon Sep 17 00:00:00 2001 From: buzbee Date: Wed, 24 Oct 2012 12:17:24 -0700 Subject: 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 --- src/compiler/Frontend.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/compiler/Frontend.cc') 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.(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 |= ( -- cgit v1.2.3-59-g8ed1b