]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/simplify_locals.c.SimplifyLocals.diff
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / mir-opt / simplify_locals.c.SimplifyLocals.diff
1 - // MIR for `c` before SimplifyLocals
2 + // MIR for `c` after SimplifyLocals
3
4 fn c() -> () {
5 let mut _0: (); // return place in scope 0 at $DIR/simplify-locals.rs:13:8: 13:8
6 let _1: [u8; 10]; // in scope 0 at $DIR/simplify-locals.rs:14:9: 14:14
7 - let mut _2: &[u8]; // in scope 0 at $DIR/simplify-locals.rs:16:20: 16:26
8 - let mut _3: &[u8; 10]; // in scope 0 at $DIR/simplify-locals.rs:16:20: 16:26
9 - let _4: &[u8; 10]; // in scope 0 at $DIR/simplify-locals.rs:16:20: 16:26
10 scope 1 {
11 debug bytes => _1; // in scope 1 at $DIR/simplify-locals.rs:14:9: 14:14
12 scope 2 {
13 }
14 }
15
16 bb0: {
17 StorageLive(_1); // scope 0 at $DIR/simplify-locals.rs:14:9: 14:14
18 _1 = [const 0_u8; 10]; // scope 0 at $DIR/simplify-locals.rs:14:17: 14:26
19 - StorageLive(_2); // scope 1 at $DIR/simplify-locals.rs:16:20: 16:26
20 - StorageLive(_3); // scope 1 at $DIR/simplify-locals.rs:16:20: 16:26
21 - StorageLive(_4); // scope 1 at $DIR/simplify-locals.rs:16:20: 16:26
22 - _4 = &_1; // scope 1 at $DIR/simplify-locals.rs:16:20: 16:26
23 - _3 = _4; // scope 1 at $DIR/simplify-locals.rs:16:20: 16:26
24 - _2 = move _3 as &[u8] (Pointer(Unsize)); // scope 1 at $DIR/simplify-locals.rs:16:20: 16:26
25 - StorageDead(_3); // scope 1 at $DIR/simplify-locals.rs:16:25: 16:26
26 - StorageDead(_4); // scope 1 at $DIR/simplify-locals.rs:16:26: 16:27
27 - StorageDead(_2); // scope 1 at $DIR/simplify-locals.rs:16:26: 16:27
28 StorageDead(_1); // scope 0 at $DIR/simplify-locals.rs:17:1: 17:2
29 return; // scope 0 at $DIR/simplify-locals.rs:17:2: 17:2
30 }
31 }
32