Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1306)

Unified Diff: runtime/vm/compiler.cc

Issue 10974005: Disable loop invariant code motion on deoptimized functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index a0f1af74d99c0443e5a2587cfb35b43d225198ce..a4b0eb40a585d430114077d1d91bf29545631596 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -213,7 +213,9 @@ 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() ==
+ FLAG_deoptimization_counter_threshold - 1)) {
LICM::Optimize(flow_graph);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698