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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 1007103003: cps-ir: Merge variables based on set-based liveness and graph coloring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 8 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
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index f2c6c71bd43f08ed8e4a977ccd0cbcd6e6eee4ff..f84157b5b6f9eb6416f7b0b467df9cd888185f64 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -168,11 +168,6 @@ class DartBackend extends Backend {
applyCpsPass(new RedundantPhiEliminator());
applyCpsPass(new ShrinkingReducer());
- // Do not rewrite the IR after variable allocation. Allocation
- // makes decisions based on an approximation of IR variable live
- // ranges that can be invalidated by transforming the IR.
- new cps_ir.RegisterAllocator(context.internalError).visit(cpsDefinition);
-
tree_builder.Builder builder =
new tree_builder.Builder(context.internalError);
tree_ir.ExecutableDefinition treeDefinition = builder.build(cpsDefinition);
@@ -188,7 +183,7 @@ class DartBackend extends Backend {
}
applyTreePass(new StatementRewriter());
- applyTreePass(new CopyPropagator());
+ applyTreePass(new VariableMerger());
applyTreePass(new LoopRewriter());
applyTreePass(new LogicalRewriter());
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698