]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/copy-prop/dead_stores_better.f.CopyProp.after.mir
Rollup merge of #107559 - WaffleLapkin:is_it_2015¿, r=davidtwco
[rust.git] / tests / mir-opt / copy-prop / dead_stores_better.f.CopyProp.after.mir
1 // MIR for `f` after CopyProp
2
3 fn f(_1: usize) -> usize {
4     debug a => _1;                       // in scope 0 at $DIR/dead_stores_better.rs:+0:10: +0:15
5     let mut _0: usize;                   // return place in scope 0 at $DIR/dead_stores_better.rs:+0:27: +0:32
6     let _2: usize;                       // in scope 0 at $DIR/dead_stores_better.rs:+1:9: +1:10
7     let mut _3: usize;                   // in scope 0 at $DIR/dead_stores_better.rs:+3:9: +3:10
8     let mut _4: usize;                   // in scope 0 at $DIR/dead_stores_better.rs:+4:8: +4:9
9     scope 1 {
10         debug b => _2;                   // in scope 1 at $DIR/dead_stores_better.rs:+1:9: +1:10
11     }
12
13     bb0: {
14         _2 = _1;                         // scope 0 at $DIR/dead_stores_better.rs:+1:13: +1:14
15         _1 = const 5_usize;              // scope 1 at $DIR/dead_stores_better.rs:+2:5: +2:10
16         _1 = _2;                         // scope 1 at $DIR/dead_stores_better.rs:+3:5: +3:10
17         StorageLive(_4);                 // scope 1 at $DIR/dead_stores_better.rs:+4:8: +4:9
18         _4 = _1;                         // scope 1 at $DIR/dead_stores_better.rs:+4:8: +4:9
19         _0 = id::<usize>(move _4) -> bb1; // scope 1 at $DIR/dead_stores_better.rs:+4:5: +4:10
20                                          // mir::Constant
21                                          // + span: $DIR/dead_stores_better.rs:16:5: 16:7
22                                          // + literal: Const { ty: fn(usize) -> usize {id::<usize>}, val: Value(<ZST>) }
23     }
24
25     bb1: {
26         StorageDead(_4);                 // scope 1 at $DIR/dead_stores_better.rs:+4:9: +4:10
27         return;                          // scope 0 at $DIR/dead_stores_better.rs:+5:2: +5:2
28     }
29 }