Skip to content

Commit b6d5b72

Browse files
bless tests
1 parent bca761d commit b6d5b72

10 files changed

+38
-38
lines changed

src/test/mir-opt/dest-prop/cycle.main.DestinationPropagation.diff

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
+ _6 = _4; // scope 3 at $DIR/cycle.rs:14:10: 14:11
5959
StorageDead(_6); // scope 3 at $DIR/cycle.rs:14:11: 14:12
6060
StorageDead(_5); // scope 3 at $DIR/cycle.rs:14:12: 14:13
61-
nop; // scope 0 at $DIR/cycle.rs:8:11: 15:2
6261
- StorageDead(_3); // scope 2 at $DIR/cycle.rs:15:1: 15:2
6362
- StorageDead(_2); // scope 1 at $DIR/cycle.rs:15:1: 15:2
6463
- StorageDead(_1); // scope 0 at $DIR/cycle.rs:15:1: 15:2

src/test/mir-opt/dest-prop/union.main.DestinationPropagation.diff

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
_4 = (_1.0: u32); // scope 2 at $DIR/union.rs:15:19: 15:24
3434
StorageDead(_4); // scope 1 at $DIR/union.rs:15:26: 15:27
3535
StorageDead(_3); // scope 1 at $DIR/union.rs:15:27: 15:28
36-
nop; // scope 0 at $DIR/union.rs:8:11: 16:2
3736
StorageDead(_1); // scope 0 at $DIR/union.rs:16:1: 16:2
3837
return; // scope 0 at $DIR/union.rs:16:2: 16:2
3938
}

src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.32bit.diff

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@
55
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
66
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
77
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
8+
+ let mut _3: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
89

910
bb0: {
1011
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
11-
switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
12-
}
13-
14-
bb1: {
15-
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:10:6: 10:6
16-
goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:8:5: 10:6
17-
}
18-
19-
bb2: {
20-
goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21-
}
22-
23-
bb3: {
12+
- switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
13+
- }
14+
-
15+
- bb1: {
16+
- goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
17+
- }
18+
-
19+
- bb2: {
20+
- goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21+
- }
22+
-
23+
- bb3: {
24+
+ StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
25+
+ _3 = move _2; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
26+
+ StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
2427
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
2528
}
2629
}

src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.64bit.diff

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@
55
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
66
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
77
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
8+
+ let mut _3: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
89

910
bb0: {
1011
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
11-
switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
12-
}
13-
14-
bb1: {
15-
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:10:6: 10:6
16-
goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:8:5: 10:6
17-
}
18-
19-
bb2: {
20-
goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21-
}
22-
23-
bb3: {
12+
- switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
13+
- }
14+
-
15+
- bb1: {
16+
- goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
17+
- }
18+
-
19+
- bb2: {
20+
- goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21+
- }
22+
-
23+
- bb3: {
24+
+ StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
25+
+ _3 = move _2; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
26+
+ StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
2427
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
2528
}
2629
}

src/test/mir-opt/matches_reduce_branches.foo.PreCodegen.before.32bit.mir

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
fn foo(_1: Option<()>) -> () {
44
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
55
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
6-
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
76

87
bb0: {
9-
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
10-
return; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
8+
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
119
}
1210
}

src/test/mir-opt/matches_reduce_branches.foo.PreCodegen.before.64bit.mir

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
fn foo(_1: Option<()>) -> () {
44
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
55
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
6-
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
76

87
bb0: {
9-
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
10-
return; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
8+
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
119
}
1210
}

src/test/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
bb2: {
2525
StorageDead(_3); // scope 0 at $DIR/remove_unneeded_drops.rs:21:11: 21:12
2626
StorageDead(_2); // scope 0 at $DIR/remove_unneeded_drops.rs:21:12: 21:13
27-
_0 = const (); // scope 0 at $DIR/remove_unneeded_drops.rs:20:32: 22:2
27+
nop; // scope 0 at $DIR/remove_unneeded_drops.rs:20:32: 22:2
2828
return; // scope 0 at $DIR/remove_unneeded_drops.rs:22:2: 22:2
2929
}
3030
}

src/test/mir-opt/remove_unneeded_drops.dont_opt.RemoveUnneededDrops.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
bb2: {
2525
StorageDead(_3); // scope 0 at $DIR/remove_unneeded_drops.rs:9:11: 9:12
2626
StorageDead(_2); // scope 0 at $DIR/remove_unneeded_drops.rs:9:12: 9:13
27-
_0 = const (); // scope 0 at $DIR/remove_unneeded_drops.rs:8:27: 10:2
27+
nop; // scope 0 at $DIR/remove_unneeded_drops.rs:8:27: 10:2
2828
return; // scope 0 at $DIR/remove_unneeded_drops.rs:10:2: 10:2
2929
}
3030
}

src/test/mir-opt/remove_unneeded_drops.opt.RemoveUnneededDrops.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- bb1: {
2121
StorageDead(_3); // scope 0 at $DIR/remove_unneeded_drops.rs:4:11: 4:12
2222
StorageDead(_2); // scope 0 at $DIR/remove_unneeded_drops.rs:4:12: 4:13
23-
_0 = const (); // scope 0 at $DIR/remove_unneeded_drops.rs:3:17: 5:2
23+
- nop; // scope 0 at $DIR/remove_unneeded_drops.rs:3:17: 5:2
2424
return; // scope 0 at $DIR/remove_unneeded_drops.rs:5:2: 5:2
2525
}
2626
}

src/test/mir-opt/remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- bb1: {
2121
StorageDead(_3); // scope 0 at $DIR/remove_unneeded_drops.rs:14:11: 14:12
2222
StorageDead(_2); // scope 0 at $DIR/remove_unneeded_drops.rs:14:12: 14:13
23-
_0 = const (); // scope 0 at $DIR/remove_unneeded_drops.rs:13:36: 15:2
23+
- nop; // scope 0 at $DIR/remove_unneeded_drops.rs:13:36: 15:2
2424
return; // scope 0 at $DIR/remove_unneeded_drops.rs:15:2: 15:2
2525
}
2626
}

0 commit comments

Comments
 (0)