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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart

Issue 1086323002: cps-ir: Remove redundant identical() calls in type propagation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase + update tests Created 5 years, 8 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: tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
index d1d19c9672c60d851abc280717b3a3d9c420cdbc..a444de905e2f9bf1f3572118ba465929280df983 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
@@ -37,8 +37,8 @@ function() {
L0:
while (true)
while (true) {
- while (P.identical(V.foo(true), true))
- if (P.identical(V.foo(false), true)) {
+ while (V.foo(true))
+ if (V.foo(false)) {
P.print(2);
continue L0;
}
@@ -80,7 +80,7 @@ main() {
print(3);
}""", """
function() {
- P.identical(V.foo(true), true) ? P.print(1) : P.print(2);
+ V.foo(true) ? P.print(1) : P.print(2);
P.print(3);
return null;
}"""),
@@ -98,7 +98,7 @@ main() {
print(3);
}""", """
function() {
- if (P.identical(V.foo(true), true)) {
+ if (V.foo(true)) {
P.print(1);
P.print(1);
} else {

Powered by Google App Engine
This is Rietveld 408576698