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

Unified Diff: tests/language/vm/load_to_load_forwarding_vm_test.dart

Issue 638903004: Fix incorrect handling of refined aliases during load forwarding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/load_to_load_forwarding_vm_test.dart
diff --git a/tests/language/vm/load_to_load_forwarding_vm_test.dart b/tests/language/vm/load_to_load_forwarding_vm_test.dart
index 86c5de7771be51d267fd1ee3569a8f81470b9d64..7da5fd26ae918ec822d47f4a7d0562a47181526b 100644
--- a/tests/language/vm/load_to_load_forwarding_vm_test.dart
+++ b/tests/language/vm/load_to_load_forwarding_vm_test.dart
@@ -471,6 +471,21 @@ testAliasingStoreIndexed(array) {
return z.x;
}
+class ZZ {
+ var f;
+}
+
+var zz, f0 = 42;
+
+testAliasesRefinement() {
+ zz = new ZZ();
+ var b = zz;
+ if (b.f == null) {
+ b.f = f0;
+ }
+ return b.f;
+}
+
main() {
final fixed = new List(10);
final growable = [];
@@ -498,6 +513,7 @@ main() {
testPhiForwarding4();
Expect.equals(4, testPhiForwarding5(cs));
testEqualPhisElimination();
+ Expect.equals(f0, testAliasesRefinement());
}
Expect.equals(1, testImmutableVMFields([], false));
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698