]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/simplify_locals.t3.SimplifyLocals-before-const-prop.diff
Auto merge of #107549 - Zoxc:rustc-shared, r=jyn514
[rust.git] / tests / mir-opt / simplify_locals.t3.SimplifyLocals-before-const-prop.diff
1 - // MIR for `t3` before SimplifyLocals-before-const-prop
2 + // MIR for `t3` after SimplifyLocals-before-const-prop
3   
4   fn t3() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/simplify_locals.rs:+0:9: +0:9
6 -     let _1: u32;                         // in scope 0 at $DIR/simplify_locals.rs:+2:14: +2:21
7 -     let mut _2: &mut u32;                // in scope 0 at $DIR/simplify_locals.rs:+2:15: +2:21
8 -     let mut _3: *mut u32;                // in scope 0 at $DIR/simplify_locals.rs:+2:20: +2:21
9       scope 1 {
10       }
11   
12       bb0: {
13 -         StorageLive(_1);                 // scope 0 at $DIR/simplify_locals.rs:+2:5: +2:23
14 -         StorageLive(_2);                 // scope 1 at $DIR/simplify_locals.rs:+2:15: +2:21
15 -         StorageLive(_3);                 // scope 1 at $DIR/simplify_locals.rs:+2:20: +2:21
16 -         _3 = &/*tls*/ mut X;             // scope 1 at $DIR/simplify_locals.rs:+2:20: +2:21
17 -         _2 = &mut (*_3);                 // scope 1 at $DIR/simplify_locals.rs:+2:15: +2:21
18 -         _1 = (*_2);                      // scope 1 at $DIR/simplify_locals.rs:+2:14: +2:21
19 -         StorageDead(_3);                 // scope 0 at $DIR/simplify_locals.rs:+2:23: +2:24
20 -         StorageDead(_2);                 // scope 0 at $DIR/simplify_locals.rs:+2:23: +2:24
21 -         StorageDead(_1);                 // scope 0 at $DIR/simplify_locals.rs:+2:23: +2:24
22           _0 = const ();                   // scope 0 at $DIR/simplify_locals.rs:+0:9: +3:2
23           return;                          // scope 0 at $DIR/simplify_locals.rs:+3:2: +3:2
24       }
25   }
26