Skip to content

Commit 63dc9a4

Browse files
committed
Bless mir-opt/while-storage.rs.
1 parent 6aeea50 commit 63dc9a4

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

src/test/mir-opt/while-storage.rs

+21-24
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,33 @@ fn main() {
2424
// StorageLive(_2);
2525
// StorageLive(_3);
2626
// _3 = _1;
27-
// _2 = const get_bool(move _3) -> bb2;
27+
// _2 = const get_bool(move _3) -> bb1;
2828
// }
2929
// bb1: {
30-
// return;
30+
// StorageDead(_3);
31+
// switchInt(_2) -> [false: bb6, otherwise: bb2];
3132
// }
3233
// bb2: {
33-
// StorageDead(_3);
34-
// switchInt(move _2) -> [false: bb4, otherwise: bb3];
34+
// StorageLive(_4);
35+
// StorageLive(_5);
36+
// _5 = _1;
37+
// _4 = const get_bool(move _5) -> bb3;
3538
// }
3639
// bb3: {
37-
// StorageDead(_2);
38-
// StorageLive(_4);
39-
// StorageLive(_5);
40-
// _5 = _1;
41-
// _4 = const get_bool(move _5) -> bb5;
40+
// StorageDead(_5);
41+
// switchInt(_4) -> [false: bb4, otherwise: bb5];
4242
// }
4343
// bb4: {
44-
// StorageDead(_2);
45-
// goto -> bb1;
46-
// }
47-
// bb5: {
48-
// StorageDead(_5);
49-
// switchInt(_4) -> [false: bb6, otherwise: bb7];
50-
// }
51-
// bb6: {
52-
// StorageDead(_4);
53-
// goto -> bb0;
54-
// }
55-
// bb7: {
56-
// StorageDead(_4);
57-
// goto -> bb1;
58-
// }
44+
// StorageDead(_4);
45+
// StorageDead(_2);
46+
// goto -> bb0;
47+
// }
48+
// bb5: {
49+
// StorageDead(_4);
50+
// goto -> bb6;
51+
// }
52+
// bb6: {
53+
// StorageDead(_2);
54+
// return;
55+
// }
5956
// END rustc.while_loop.PreCodegen.after.mir

0 commit comments

Comments
 (0)