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

Side by Side Diff: tests/language/licm_test.dart

Issue 11361035: Fix a LICM bug where we were loop hoisting an isntruction, even though that isntruction's inputs we… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 var sum = 0;
6 var foo = 0;
7 var bar = 1;
8
9 test() {
10 while (true) {
11 if (0 === foo) {
12 sum += 2;
13 if (1 === bar) {
14 sum += 3;
15 break;
16 }
17 break;
18 }
19 }
20 }
21
22 main() {
23 test();
24 Expect.equals(5, sum);
25 }
OLDNEW
« lib/compiler/implementation/ssa/optimize.dart ('K') | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698