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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_propagation.dart

Issue 1444363002: dart2js cps: Global value numbering and loop-invariant code motion. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add test case Created 5 years, 1 month 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/cps_ir/type_propagation.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
index 9d1a33523cc5b5146afa8fc69e2fa454f71e3ec1..5e9adf4cc0878bd19f84a5e89165723a3de52885 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -3110,6 +3110,7 @@ class TypePropagationVisitor implements Visitor {
@override
void visitGetIndex(GetIndex node) {
AbstractValue input = getValue(node.object.definition);
+ node.objectIsNotNull = input.isDefinitelyNotNull;
setValue(node, nonConstant(typeSystem.elementTypeOfIndexable(input.type)));
}

Powered by Google App Engine
This is Rietveld 408576698