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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/task.dart

Issue 1585923010: dart2js cps: Eliminate duplicate branches. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add missing type annotations Created 4 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
Index: pkg/compiler/lib/src/js_backend/codegen/task.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
index 6fe5bccb26ef005abd5789db806e694452aa5392..e89c4aee4f063038e50bcb970e9a47ba21df64c1 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -226,6 +226,8 @@ class CpsFunctionCompiler implements FunctionCompiler {
applyCpsPass(new ShrinkingReducer(), cpsFunction);
applyCpsPass(new EagerlyLoadStatics(), cpsFunction);
applyCpsPass(new GVN(compiler, typeSystem), cpsFunction);
+ applyCpsPass(new DuplicateBranchEliminator(), cpsFunction);
+ applyCpsPass(new ShrinkingReducer(), cpsFunction);
applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction);
applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction);
applyCpsPass(new LoopInvariantBranchMotion(), cpsFunction);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/optimizers.dart ('k') | tests/compiler/dart2js/cps_ir/expected/argument_refinement_21.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698