|
1 | 1 | // MIR for `match_tuple` after SimplifyCfg-initial
|
2 | 2 |
|
3 | 3 | fn match_tuple(_1: (u32, bool, Option<i32>, u32)) -> u32 {
|
4 |
| - debug x => _1; // in scope 0 at $DIR/exponential-or.rs:6:16: 6:17 |
5 |
| - let mut _0: u32; // return place in scope 0 at $DIR/exponential-or.rs:6:53: 6:56 |
6 |
| - let mut _2: isize; // in scope 0 at $DIR/exponential-or.rs:8:37: 8:48 |
7 |
| - let mut _3: bool; // in scope 0 at $DIR/exponential-or.rs:8:70: 8:77 |
8 |
| - let mut _4: bool; // in scope 0 at $DIR/exponential-or.rs:8:70: 8:77 |
9 |
| - let mut _5: bool; // in scope 0 at $DIR/exponential-or.rs:8:62: 8:67 |
10 |
| - let mut _6: bool; // in scope 0 at $DIR/exponential-or.rs:8:62: 8:67 |
11 |
| - let _7: u32; // in scope 0 at $DIR/exponential-or.rs:8:10: 8:21 |
12 |
| - let _8: u32; // in scope 0 at $DIR/exponential-or.rs:8:57: 8:78 |
13 |
| - let mut _9: u32; // in scope 0 at $DIR/exponential-or.rs:8:83: 8:84 |
14 |
| - let mut _10: u32; // in scope 0 at $DIR/exponential-or.rs:8:87: 8:88 |
| 4 | + debug x => _1; // in scope 0 at $DIR/exponential-or.rs:4:16: 4:17 |
| 5 | + let mut _0: u32; // return place in scope 0 at $DIR/exponential-or.rs:4:53: 4:56 |
| 6 | + let mut _2: isize; // in scope 0 at $DIR/exponential-or.rs:6:37: 6:48 |
| 7 | + let mut _3: bool; // in scope 0 at $DIR/exponential-or.rs:6:70: 6:77 |
| 8 | + let mut _4: bool; // in scope 0 at $DIR/exponential-or.rs:6:70: 6:77 |
| 9 | + let mut _5: bool; // in scope 0 at $DIR/exponential-or.rs:6:62: 6:67 |
| 10 | + let mut _6: bool; // in scope 0 at $DIR/exponential-or.rs:6:62: 6:67 |
| 11 | + let _7: u32; // in scope 0 at $DIR/exponential-or.rs:6:10: 6:21 |
| 12 | + let _8: u32; // in scope 0 at $DIR/exponential-or.rs:6:57: 6:78 |
| 13 | + let mut _9: u32; // in scope 0 at $DIR/exponential-or.rs:6:83: 6:84 |
| 14 | + let mut _10: u32; // in scope 0 at $DIR/exponential-or.rs:6:87: 6:88 |
15 | 15 | scope 1 {
|
16 |
| - debug y => _7; // in scope 1 at $DIR/exponential-or.rs:8:10: 8:21 |
17 |
| - debug z => _8; // in scope 1 at $DIR/exponential-or.rs:8:57: 8:78 |
| 16 | + debug y => _7; // in scope 1 at $DIR/exponential-or.rs:6:10: 6:21 |
| 17 | + debug z => _8; // in scope 1 at $DIR/exponential-or.rs:6:57: 6:78 |
18 | 18 | }
|
19 | 19 |
|
20 | 20 | bb0: {
|
21 |
| - FakeRead(ForMatchedPlace, _1); // scope 0 at $DIR/exponential-or.rs:7:11: 7:12 |
22 |
| - switchInt((_1.0: u32)) -> [1_u32: bb2, 4_u32: bb2, otherwise: bb1]; // scope 0 at $DIR/exponential-or.rs:8:15: 8:16 |
| 21 | + FakeRead(ForMatchedPlace, _1); // scope 0 at $DIR/exponential-or.rs:5:11: 5:12 |
| 22 | + switchInt((_1.0: u32)) -> [1_u32: bb2, 4_u32: bb2, otherwise: bb1]; // scope 0 at $DIR/exponential-or.rs:6:15: 6:16 |
23 | 23 | }
|
24 | 24 |
|
25 | 25 | bb1: {
|
26 |
| - _0 = const 0_u32; // scope 0 at $DIR/exponential-or.rs:9:14: 9:15 |
27 |
| - goto -> bb10; // scope 0 at $DIR/exponential-or.rs:7:5: 10:6 |
| 26 | + _0 = const 0_u32; // scope 0 at $DIR/exponential-or.rs:7:14: 7:15 |
| 27 | + goto -> bb10; // scope 0 at $DIR/exponential-or.rs:5:5: 8:6 |
28 | 28 | }
|
29 | 29 |
|
30 | 30 | bb2: {
|
31 |
| - _2 = discriminant((_1.2: std::option::Option<i32>)); // scope 0 at $DIR/exponential-or.rs:8:37: 8:48 |
32 |
| - switchInt(move _2) -> [0_isize: bb4, 1_isize: bb3, otherwise: bb1]; // scope 0 at $DIR/exponential-or.rs:8:37: 8:48 |
| 31 | + _2 = discriminant((_1.2: std::option::Option<i32>)); // scope 0 at $DIR/exponential-or.rs:6:37: 6:48 |
| 32 | + switchInt(move _2) -> [0_isize: bb4, 1_isize: bb3, otherwise: bb1]; // scope 0 at $DIR/exponential-or.rs:6:37: 6:48 |
33 | 33 | }
|
34 | 34 |
|
35 | 35 | bb3: {
|
36 |
| - switchInt((((_1.2: std::option::Option<i32>) as Some).0: i32)) -> [1_i32: bb4, 8_i32: bb4, otherwise: bb1]; // scope 0 at $DIR/exponential-or.rs:8:42: 8:43 |
| 36 | + switchInt((((_1.2: std::option::Option<i32>) as Some).0: i32)) -> [1_i32: bb4, 8_i32: bb4, otherwise: bb1]; // scope 0 at $DIR/exponential-or.rs:6:42: 6:43 |
37 | 37 | }
|
38 | 38 |
|
39 | 39 | bb4: {
|
40 |
| - _5 = Le(const 6_u32, (_1.3: u32)); // scope 0 at $DIR/exponential-or.rs:8:62: 8:67 |
41 |
| - switchInt(move _5) -> [false: bb6, otherwise: bb5]; // scope 0 at $DIR/exponential-or.rs:8:62: 8:67 |
| 40 | + _5 = Le(const 6_u32, (_1.3: u32)); // scope 0 at $DIR/exponential-or.rs:6:62: 6:67 |
| 41 | + switchInt(move _5) -> [false: bb6, otherwise: bb5]; // scope 0 at $DIR/exponential-or.rs:6:62: 6:67 |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | bb5: {
|
45 |
| - _6 = Le((_1.3: u32), const 9_u32); // scope 0 at $DIR/exponential-or.rs:8:62: 8:67 |
46 |
| - switchInt(move _6) -> [false: bb6, otherwise: bb8]; // scope 0 at $DIR/exponential-or.rs:8:62: 8:67 |
| 45 | + _6 = Le((_1.3: u32), const 9_u32); // scope 0 at $DIR/exponential-or.rs:6:62: 6:67 |
| 46 | + switchInt(move _6) -> [false: bb6, otherwise: bb8]; // scope 0 at $DIR/exponential-or.rs:6:62: 6:67 |
47 | 47 | }
|
48 | 48 |
|
49 | 49 | bb6: {
|
50 |
| - _3 = Le(const 13_u32, (_1.3: u32)); // scope 0 at $DIR/exponential-or.rs:8:70: 8:77 |
51 |
| - switchInt(move _3) -> [false: bb1, otherwise: bb7]; // scope 0 at $DIR/exponential-or.rs:8:70: 8:77 |
| 50 | + _3 = Le(const 13_u32, (_1.3: u32)); // scope 0 at $DIR/exponential-or.rs:6:70: 6:77 |
| 51 | + switchInt(move _3) -> [false: bb1, otherwise: bb7]; // scope 0 at $DIR/exponential-or.rs:6:70: 6:77 |
52 | 52 | }
|
53 | 53 |
|
54 | 54 | bb7: {
|
55 |
| - _4 = Le((_1.3: u32), const 16_u32); // scope 0 at $DIR/exponential-or.rs:8:70: 8:77 |
56 |
| - switchInt(move _4) -> [false: bb1, otherwise: bb8]; // scope 0 at $DIR/exponential-or.rs:8:70: 8:77 |
| 55 | + _4 = Le((_1.3: u32), const 16_u32); // scope 0 at $DIR/exponential-or.rs:6:70: 6:77 |
| 56 | + switchInt(move _4) -> [false: bb1, otherwise: bb8]; // scope 0 at $DIR/exponential-or.rs:6:70: 6:77 |
57 | 57 | }
|
58 | 58 |
|
59 | 59 | bb8: {
|
60 |
| - falseEdge -> [real: bb9, imaginary: bb1]; // scope 0 at $DIR/exponential-or.rs:8:9: 8:79 |
| 60 | + falseEdge -> [real: bb9, imaginary: bb1]; // scope 0 at $DIR/exponential-or.rs:6:9: 6:79 |
61 | 61 | }
|
62 | 62 |
|
63 | 63 | bb9: {
|
64 |
| - StorageLive(_7); // scope 0 at $DIR/exponential-or.rs:8:10: 8:21 |
65 |
| - _7 = (_1.0: u32); // scope 0 at $DIR/exponential-or.rs:8:10: 8:21 |
66 |
| - StorageLive(_8); // scope 0 at $DIR/exponential-or.rs:8:57: 8:78 |
67 |
| - _8 = (_1.3: u32); // scope 0 at $DIR/exponential-or.rs:8:57: 8:78 |
68 |
| - StorageLive(_9); // scope 1 at $DIR/exponential-or.rs:8:83: 8:84 |
69 |
| - _9 = _7; // scope 1 at $DIR/exponential-or.rs:8:83: 8:84 |
70 |
| - StorageLive(_10); // scope 1 at $DIR/exponential-or.rs:8:87: 8:88 |
71 |
| - _10 = _8; // scope 1 at $DIR/exponential-or.rs:8:87: 8:88 |
72 |
| - _0 = BitXor(move _9, move _10); // scope 1 at $DIR/exponential-or.rs:8:83: 8:88 |
73 |
| - StorageDead(_10); // scope 1 at $DIR/exponential-or.rs:8:87: 8:88 |
74 |
| - StorageDead(_9); // scope 1 at $DIR/exponential-or.rs:8:87: 8:88 |
75 |
| - StorageDead(_8); // scope 0 at $DIR/exponential-or.rs:8:87: 8:88 |
76 |
| - StorageDead(_7); // scope 0 at $DIR/exponential-or.rs:8:87: 8:88 |
77 |
| - goto -> bb10; // scope 0 at $DIR/exponential-or.rs:7:5: 10:6 |
| 64 | + StorageLive(_7); // scope 0 at $DIR/exponential-or.rs:6:10: 6:21 |
| 65 | + _7 = (_1.0: u32); // scope 0 at $DIR/exponential-or.rs:6:10: 6:21 |
| 66 | + StorageLive(_8); // scope 0 at $DIR/exponential-or.rs:6:57: 6:78 |
| 67 | + _8 = (_1.3: u32); // scope 0 at $DIR/exponential-or.rs:6:57: 6:78 |
| 68 | + StorageLive(_9); // scope 1 at $DIR/exponential-or.rs:6:83: 6:84 |
| 69 | + _9 = _7; // scope 1 at $DIR/exponential-or.rs:6:83: 6:84 |
| 70 | + StorageLive(_10); // scope 1 at $DIR/exponential-or.rs:6:87: 6:88 |
| 71 | + _10 = _8; // scope 1 at $DIR/exponential-or.rs:6:87: 6:88 |
| 72 | + _0 = BitXor(move _9, move _10); // scope 1 at $DIR/exponential-or.rs:6:83: 6:88 |
| 73 | + StorageDead(_10); // scope 1 at $DIR/exponential-or.rs:6:87: 6:88 |
| 74 | + StorageDead(_9); // scope 1 at $DIR/exponential-or.rs:6:87: 6:88 |
| 75 | + StorageDead(_8); // scope 0 at $DIR/exponential-or.rs:6:87: 6:88 |
| 76 | + StorageDead(_7); // scope 0 at $DIR/exponential-or.rs:6:87: 6:88 |
| 77 | + goto -> bb10; // scope 0 at $DIR/exponential-or.rs:5:5: 8:6 |
78 | 78 | }
|
79 | 79 |
|
80 | 80 | bb10: {
|
81 |
| - return; // scope 0 at $DIR/exponential-or.rs:11:2: 11:2 |
| 81 | + return; // scope 0 at $DIR/exponential-or.rs:9:2: 9:2 |
82 | 82 | }
|
83 | 83 | }
|
0 commit comments