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

Unified Diff: dart/frog/leg/ssa/optimize.dart

Issue 9570002: Add test inspired by Leg bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix the Leg bug. Created 8 years, 10 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
« no previous file with comments | « no previous file | dart/tests/language/src/Closure3Test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/ssa/optimize.dart
diff --git a/dart/frog/leg/ssa/optimize.dart b/dart/frog/leg/ssa/optimize.dart
index 45765a4d03ff355ab867854188ddd4e76b40a737..dfe1f9452b7eea7818b32e94e7b1f026e8ee4449 100644
--- a/dart/frog/leg/ssa/optimize.dart
+++ b/dart/frog/leg/ssa/optimize.dart
@@ -246,7 +246,8 @@ class SsaDeadCodeEliminator extends HGraphVisitor {
// (e.g. branching instructions have side effects).
return !instruction.hasSideEffects()
&& instruction.usedBy.isEmpty()
- && instruction is !HCheck;
+ && instruction is !HCheck
+ && instruction is !HTypeGuard;
}
void visitGraph(HGraph graph) {
« no previous file with comments | « no previous file | dart/tests/language/src/Closure3Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698