blob: f290da84e5d88e43f561f119a373e6264a2a19f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
- // MIR for `disappearing_bb` before JumpThreading
+ // MIR for `disappearing_bb` after JumpThreading
fn disappearing_bb(_1: u8) -> u8 {
let mut _0: u8;
let mut _2: bool;
let mut _3: bool;
bb0: {
_2 = const true;
_3 = const true;
switchInt(_1) -> [0: bb3, 1: bb3, 2: bb1, otherwise: bb2];
}
bb1: {
_3 = const false;
- goto -> bb4;
+ goto -> bb9;
}
bb2: {
unreachable;
}
bb3: {
_2 = const false;
goto -> bb4;
}
bb4: {
switchInt(_3) -> [0: bb5, otherwise: bb7];
}
bb5: {
switchInt(_2) -> [0: bb6, otherwise: bb8];
}
bb6: {
return;
}
bb7: {
- goto -> bb5;
+ goto -> bb10;
}
bb8: {
+ goto -> bb6;
+ }
+
+ bb9: {
+ goto -> bb5;
+ }
+
+ bb10: {
goto -> bb6;
}
}
|