Chromium Code Reviews| Index: runtime/vm/compiler.cc |
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
| index a0f1af74d99c0443e5a2587cfb35b43d225198ce..ffb8b8980f178e58f179c4fcbf93ff67f4ce9b7f 100644 |
| --- a/runtime/vm/compiler.cc |
| +++ b/runtime/vm/compiler.cc |
| @@ -213,7 +213,8 @@ static bool CompileParsedFunctionHelper(const ParsedFunction& parsed_function, |
| if (FLAG_common_subexpression_elimination) { |
| DominatorBasedCSE::Optimize(flow_graph); |
| } |
| - if (FLAG_loop_invariant_code_motion) { |
| + if (FLAG_loop_invariant_code_motion && |
| + parsed_function.function().deoptimization_counter() == 0) { |
|
Florian Schneider
2012/09/24 11:08:50
Since there could be other deoptimizations than th
|
| LICM::Optimize(flow_graph); |
| } |