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

Unified Diff: runtime/vm/compiler.cc

Issue 11791024: Do ComputeUseLists after ApplyClassIds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 b460ae69c67a21c78ede655c41aed2748c87bac4..408a47594423aa806dc95fa156193a0f9b073a74 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -206,6 +206,9 @@ static bool CompileParsedFunctionHelper(const ParsedFunction& parsed_function,
// Use propagated class-ids to optimize further.
optimizer.ApplyClassIds();
+ // Recompute use lists after applying class ids.
+ flow_graph->ComputeUseLists();
+
// Do optimizations that depend on the propagated type information.
// TODO(srdjan): Should this be called CanonicalizeComputations?
optimizer.OptimizeComputations();
« 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