]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/slice_filter.variant_b-{closure#0}.DestinationPropagation.diff
Rollup merge of #107596 - Kobzol:stage-build-timer, r=Mark-Simulacrum
[rust.git] / tests / mir-opt / slice_filter.variant_b-{closure#0}.DestinationPropagation.diff
1 - // MIR for `variant_b::{closure#0}` before DestinationPropagation
2 + // MIR for `variant_b::{closure#0}` after DestinationPropagation
3   
4   fn variant_b::{closure#0}(_1: &mut [closure@$DIR/slice_filter.rs:12:25: 12:41], _2: &&(usize, usize, usize, usize)) -> bool {
5       let mut _0: bool;                    // return place in scope 0 at $DIR/slice_filter.rs:+0:42: +0:42
6       let _3: usize;                       // in scope 0 at $DIR/slice_filter.rs:+0:29: +0:30
7       let _4: usize;                       // in scope 0 at $DIR/slice_filter.rs:+0:32: +0:33
8       let _5: usize;                       // in scope 0 at $DIR/slice_filter.rs:+0:35: +0:36
9       let _6: usize;                       // in scope 0 at $DIR/slice_filter.rs:+0:38: +0:39
10       let mut _7: bool;                    // in scope 0 at $DIR/slice_filter.rs:+0:42: +0:58
11       let mut _8: bool;                    // in scope 0 at $DIR/slice_filter.rs:+0:42: +0:48
12       let mut _9: bool;                    // in scope 0 at $DIR/slice_filter.rs:+0:52: +0:58
13       let mut _10: bool;                   // in scope 0 at $DIR/slice_filter.rs:+0:62: +0:78
14       let mut _11: bool;                   // in scope 0 at $DIR/slice_filter.rs:+0:62: +0:68
15       let mut _12: bool;                   // in scope 0 at $DIR/slice_filter.rs:+0:72: +0:78
16       let mut _13: &(usize, usize, usize, usize); // in scope 0 at $DIR/slice_filter.rs:+0:26: +0:40
17       let mut _14: &(usize, usize, usize, usize); // in scope 0 at $DIR/slice_filter.rs:+0:26: +0:40
18       let mut _15: &(usize, usize, usize, usize); // in scope 0 at $DIR/slice_filter.rs:+0:26: +0:40
19       let mut _16: &(usize, usize, usize, usize); // in scope 0 at $DIR/slice_filter.rs:+0:26: +0:40
20       scope 1 {
21           debug a => _3;                   // in scope 1 at $DIR/slice_filter.rs:+0:29: +0:30
22           debug b => _4;                   // in scope 1 at $DIR/slice_filter.rs:+0:32: +0:33
23           debug c => _5;                   // in scope 1 at $DIR/slice_filter.rs:+0:35: +0:36
24           debug d => _6;                   // in scope 1 at $DIR/slice_filter.rs:+0:38: +0:39
25       }
26   
27       bb0: {
28           _13 = deref_copy (*_2);          // scope 0 at $DIR/slice_filter.rs:+0:29: +0:30
29           _3 = ((*_13).0: usize);          // scope 0 at $DIR/slice_filter.rs:+0:29: +0:30
30           _14 = deref_copy (*_2);          // scope 0 at $DIR/slice_filter.rs:+0:32: +0:33
31           _4 = ((*_14).1: usize);          // scope 0 at $DIR/slice_filter.rs:+0:32: +0:33
32           _15 = deref_copy (*_2);          // scope 0 at $DIR/slice_filter.rs:+0:35: +0:36
33           _5 = ((*_15).2: usize);          // scope 0 at $DIR/slice_filter.rs:+0:35: +0:36
34           _16 = deref_copy (*_2);          // scope 0 at $DIR/slice_filter.rs:+0:38: +0:39
35           _6 = ((*_16).3: usize);          // scope 0 at $DIR/slice_filter.rs:+0:38: +0:39
36 -         StorageLive(_7);                 // scope 1 at $DIR/slice_filter.rs:+0:42: +0:58
37 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:42: +0:58
38           StorageLive(_8);                 // scope 1 at $DIR/slice_filter.rs:+0:42: +0:48
39           _8 = Le(_3, _5);                 // scope 1 at $DIR/slice_filter.rs:+0:42: +0:48
40           switchInt(move _8) -> [0: bb4, otherwise: bb5]; // scope 1 at $DIR/slice_filter.rs:+0:42: +0:58
41       }
42   
43       bb1: {
44           _0 = const true;                 // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
45           goto -> bb3;                     // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
46       }
47   
48       bb2: {
49 -         StorageLive(_10);                // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
50 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
51           StorageLive(_11);                // scope 1 at $DIR/slice_filter.rs:+0:62: +0:68
52           _11 = Le(_5, _3);                // scope 1 at $DIR/slice_filter.rs:+0:62: +0:68
53           switchInt(move _11) -> [0: bb6, otherwise: bb7]; // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
54       }
55   
56       bb3: {
57 -         StorageDead(_10);                // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
58 -         StorageDead(_7);                 // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
59 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
60 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
61           return;                          // scope 0 at $DIR/slice_filter.rs:+0:78: +0:78
62       }
63   
64       bb4: {
65 -         StorageDead(_9);                 // scope 1 at $DIR/slice_filter.rs:+0:57: +0:58
66 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:57: +0:58
67           StorageDead(_8);                 // scope 1 at $DIR/slice_filter.rs:+0:57: +0:58
68           goto -> bb2;                     // scope 1 at $DIR/slice_filter.rs:+0:42: +0:58
69       }
70   
71       bb5: {
72 -         StorageLive(_9);                 // scope 1 at $DIR/slice_filter.rs:+0:52: +0:58
73 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:52: +0:58
74           _9 = Le(_6, _4);                 // scope 1 at $DIR/slice_filter.rs:+0:52: +0:58
75 -         _7 = move _9;                    // scope 1 at $DIR/slice_filter.rs:+0:42: +0:58
76 -         StorageDead(_9);                 // scope 1 at $DIR/slice_filter.rs:+0:57: +0:58
77 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:42: +0:58
78 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:57: +0:58
79           StorageDead(_8);                 // scope 1 at $DIR/slice_filter.rs:+0:57: +0:58
80 -         switchInt(move _7) -> [0: bb2, otherwise: bb1]; // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
81 +         switchInt(move _9) -> [0: bb2, otherwise: bb1]; // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
82       }
83   
84       bb6: {
85 -         _10 = const false;               // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
86 +         _0 = const false;                // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
87           goto -> bb8;                     // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
88       }
89   
90       bb7: {
91 -         StorageLive(_12);                // scope 1 at $DIR/slice_filter.rs:+0:72: +0:78
92 -         _12 = Le(_4, _6);                // scope 1 at $DIR/slice_filter.rs:+0:72: +0:78
93 -         _10 = move _12;                  // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
94 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:72: +0:78
95 +         _0 = Le(_4, _6);                 // scope 1 at $DIR/slice_filter.rs:+0:72: +0:78
96 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
97           goto -> bb8;                     // scope 1 at $DIR/slice_filter.rs:+0:62: +0:78
98       }
99   
100       bb8: {
101 -         StorageDead(_12);                // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
102 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
103           StorageDead(_11);                // scope 1 at $DIR/slice_filter.rs:+0:77: +0:78
104 -         _0 = move _10;                   // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
105 +         nop;                             // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
106           goto -> bb3;                     // scope 1 at $DIR/slice_filter.rs:+0:42: +0:78
107       }
108   }
109