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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 417043003: Implement shrinking reductions in CPS IR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused method Created 6 years, 5 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: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 502f8d036bab9b5c64e5969df49d5b9bd57ba03f..4dad2635d0733028a43062081f1546535bc8b02c 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -233,6 +233,8 @@ class DartBackend extends Backend {
cps_ir.FunctionDefinition function = compiler.irBuilder.getIr(element);
new RedundantPhiEliminator().rewrite(function);
compiler.tracer.traceGraph("Redundant phi elimination", function);
+ new ShrinkingReducer().rewrite(function);
+ compiler.tracer.traceGraph("Shrinking reductions", function);
tree_builder.Builder builder = new tree_builder.Builder(compiler);
tree_ir.FunctionDefinition definition = builder.build(function);
assert(definition != null);

Powered by Google App Engine
This is Rietveld 408576698