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

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: Addressed comments, pt. 2 Created 6 years, 4 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 92c0156325d3392253a5ee2faa22db0d9f4d731c..76dd8119c2b38998e209a43197e034ab1eaba3bf 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -231,6 +231,8 @@ class DartBackend extends Backend {
new RedundantPhiEliminator().rewrite(function);
compiler.tracer.traceCompilation(element.name, null, compiler);
compiler.tracer.traceGraph("Redundant phi elimination", function);
+ new ShrinkingReducer().rewrite(function);
+ compiler.tracer.traceGraph("Shrinking reductions", function);
// 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.

Powered by Google App Engine
This is Rietveld 408576698