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

Unified Diff: pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.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: Missed a few comments Created 5 years, 9 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/tree_ir/optimization/loop_rewriter.dart
diff --git a/pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart b/pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
index d02e1ac40610a0149f02f98eb5ff512eeaf5c2b7..b1357ee32363017a0d56f90838e95f2cf6b2421c 100644
--- a/pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
+++ b/pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
@@ -43,13 +43,6 @@ class LoopRewriter extends RecursiveVisitor with PassMixin {
}
Statement visitAssign(Assign node) {
- // Clean up redundant assignments left behind in the previous phase.
- Expression value = node.value;
- if (value is VariableUse && node.variable == value.variable) {
- --node.variable.readCount;
- --node.variable.writeCount;
- return visitStatement(node.next);
- }
visitExpression(node.value);
node.next = visitStatement(node.next);
return node;

Powered by Google App Engine
This is Rietveld 408576698