]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/dest-prop/dead_stores_79191.f.DestinationPropagation.after.mir
b9d4b59d2f7a1cfe27a25523850a93f307910f70
[rustc.git] / tests / mir-opt / dest-prop / dead_stores_79191.f.DestinationPropagation.after.mir
1 // MIR for `f` after DestinationPropagation
2
3 fn f(_1: usize) -> usize {
4 debug a => _1; // in scope 0 at $DIR/dead_stores_79191.rs:+0:6: +0:11
5 let mut _0: usize; // return place in scope 0 at $DIR/dead_stores_79191.rs:+0:23: +0:28
6 let _2: usize; // in scope 0 at $DIR/dead_stores_79191.rs:+1:9: +1:10
7 let mut _3: usize; // in scope 0 at $DIR/dead_stores_79191.rs:+3:9: +3:10
8 let mut _4: usize; // in scope 0 at $DIR/dead_stores_79191.rs:+4:8: +4:9
9 scope 1 {
10 debug b => _3; // in scope 1 at $DIR/dead_stores_79191.rs:+1:9: +1:10
11 }
12
13 bb0: {
14 nop; // scope 0 at $DIR/dead_stores_79191.rs:+1:9: +1:10
15 _3 = _1; // scope 0 at $DIR/dead_stores_79191.rs:+1:13: +1:14
16 _1 = const 5_usize; // scope 1 at $DIR/dead_stores_79191.rs:+2:5: +2:10
17 nop; // scope 1 at $DIR/dead_stores_79191.rs:+3:9: +3:10
18 nop; // scope 1 at $DIR/dead_stores_79191.rs:+3:9: +3:10
19 _1 = move _3; // scope 1 at $DIR/dead_stores_79191.rs:+3:5: +3:10
20 nop; // scope 1 at $DIR/dead_stores_79191.rs:+3:9: +3:10
21 nop; // scope 1 at $DIR/dead_stores_79191.rs:+4:8: +4:9
22 nop; // scope 1 at $DIR/dead_stores_79191.rs:+4:8: +4:9
23 _0 = id::<usize>(move _1) -> bb1; // scope 1 at $DIR/dead_stores_79191.rs:+4:5: +4:10
24 // mir::Constant
25 // + span: $DIR/dead_stores_79191.rs:13:5: 13:7
26 // + literal: Const { ty: fn(usize) -> usize {id::<usize>}, val: Value(<ZST>) }
27 }
28
29 bb1: {
30 nop; // scope 1 at $DIR/dead_stores_79191.rs:+4:9: +4:10
31 nop; // scope 0 at $DIR/dead_stores_79191.rs:+5:1: +5:2
32 return; // scope 0 at $DIR/dead_stores_79191.rs:+5:2: +5:2
33 }
34 }