]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/dataflow-const-prop/sibling_ptr.main.DataflowConstProp.diff
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / mir-opt / dataflow-const-prop / sibling_ptr.main.DataflowConstProp.diff
1 - // MIR for `main` before DataflowConstProp
2 + // MIR for `main` after DataflowConstProp
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/sibling_ptr.rs:+0:11: +0:11
6       let mut _1: (u8, u8);                // in scope 0 at $DIR/sibling_ptr.rs:+1:9: +1:14
7       let _2: ();                          // in scope 0 at $DIR/sibling_ptr.rs:+2:5: +5:6
8       let mut _4: *mut u8;                 // in scope 0 at $DIR/sibling_ptr.rs:+4:10: +4:18
9       let mut _5: *mut u8;                 // in scope 0 at $DIR/sibling_ptr.rs:+4:10: +4:11
10       scope 1 {
11           debug x => _1;                   // in scope 1 at $DIR/sibling_ptr.rs:+1:9: +1:14
12           let _6: u8;                      // in scope 1 at $DIR/sibling_ptr.rs:+6:9: +6:11
13           scope 2 {
14               let _3: *mut u8;             // in scope 2 at $DIR/sibling_ptr.rs:+3:13: +3:14
15               scope 3 {
16                   debug p => _3;           // in scope 3 at $DIR/sibling_ptr.rs:+3:13: +3:14
17               }
18           }
19           scope 4 {
20               debug x1 => _6;              // in scope 4 at $DIR/sibling_ptr.rs:+6:9: +6:11
21           }
22       }
23   
24       bb0: {
25           StorageLive(_1);                 // scope 0 at $DIR/sibling_ptr.rs:+1:9: +1:14
26           Deinit(_1);                      // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
27           (_1.0: u8) = const 0_u8;         // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
28           (_1.1: u8) = const 0_u8;         // scope 0 at $DIR/sibling_ptr.rs:+1:27: +1:33
29           StorageLive(_2);                 // scope 1 at $DIR/sibling_ptr.rs:+2:5: +5:6
30           StorageLive(_3);                 // scope 2 at $DIR/sibling_ptr.rs:+3:13: +3:14
31           _3 = &raw mut (_1.0: u8);        // scope 2 at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
32           StorageLive(_4);                 // scope 3 at $DIR/sibling_ptr.rs:+4:10: +4:18
33           StorageLive(_5);                 // scope 3 at $DIR/sibling_ptr.rs:+4:10: +4:11
34           _5 = _3;                         // scope 3 at $DIR/sibling_ptr.rs:+4:10: +4:11
35           _4 = ptr::mut_ptr::<impl *mut u8>::add(move _5, const 1_usize) -> bb1; // scope 3 at $DIR/sibling_ptr.rs:+4:10: +4:18
36                                            // mir::Constant
37                                            // + span: $DIR/sibling_ptr.rs:8:12: 8:15
38                                            // + literal: Const { ty: unsafe fn(*mut u8, usize) -> *mut u8 {ptr::mut_ptr::<impl *mut u8>::add}, val: Value(<ZST>) }
39       }
40   
41       bb1: {
42           StorageDead(_5);                 // scope 3 at $DIR/sibling_ptr.rs:+4:17: +4:18
43           (*_4) = const 1_u8;              // scope 3 at $DIR/sibling_ptr.rs:+4:9: +4:22
44           StorageDead(_4);                 // scope 3 at $DIR/sibling_ptr.rs:+4:22: +4:23
45           _2 = const ();                   // scope 2 at $DIR/sibling_ptr.rs:+2:5: +5:6
46           StorageDead(_3);                 // scope 2 at $DIR/sibling_ptr.rs:+5:5: +5:6
47           StorageDead(_2);                 // scope 1 at $DIR/sibling_ptr.rs:+5:5: +5:6
48           StorageLive(_6);                 // scope 1 at $DIR/sibling_ptr.rs:+6:9: +6:11
49           _6 = (_1.1: u8);                 // scope 1 at $DIR/sibling_ptr.rs:+6:14: +6:17
50           _0 = const ();                   // scope 0 at $DIR/sibling_ptr.rs:+0:11: +7:2
51           StorageDead(_6);                 // scope 1 at $DIR/sibling_ptr.rs:+7:1: +7:2
52           StorageDead(_1);                 // scope 0 at $DIR/sibling_ptr.rs:+7:1: +7:2
53           return;                          // scope 0 at $DIR/sibling_ptr.rs:+7:2: +7:2
54       }
55   }
56