2022-04-24 16:34:24 -05:00
|
|
|
// MIR for `f` after DestinationPropagation
|
|
|
|
|
|
|
|
fn f(_1: usize) -> usize {
|
|
|
|
debug a => _1; // in scope 0 at $DIR/dead_stores_better.rs:+0:10: +0:15
|
|
|
|
let mut _0: usize; // return place in scope 0 at $DIR/dead_stores_better.rs:+0:27: +0:32
|
|
|
|
let _2: usize; // in scope 0 at $DIR/dead_stores_better.rs:+1:9: +1:10
|
|
|
|
let mut _3: usize; // in scope 0 at $DIR/dead_stores_better.rs:+3:9: +3:10
|
|
|
|
let mut _4: usize; // in scope 0 at $DIR/dead_stores_better.rs:+4:8: +4:9
|
|
|
|
scope 1 {
|
|
|
|
debug b => _1; // in scope 1 at $DIR/dead_stores_better.rs:+1:9: +1:10
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
nop; // scope 0 at $DIR/dead_stores_better.rs:+1:9: +1:10
|
|
|
|
nop; // scope 0 at $DIR/dead_stores_better.rs:+1:13: +1:14
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+3:9: +3:10
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+3:9: +3:10
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+3:5: +3:10
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+3:9: +3:10
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+4:8: +4:9
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+4:8: +4:9
|
2023-06-08 02:34:53 -05:00
|
|
|
_0 = id::<usize>(move _1) -> [return: bb1, unwind unreachable]; // scope 1 at $DIR/dead_stores_better.rs:+4:5: +4:10
|
2022-04-24 16:34:24 -05:00
|
|
|
// mir::Constant
|
2023-04-05 03:44:20 -05:00
|
|
|
// + span: $DIR/dead_stores_better.rs:17:5: 17:7
|
2022-04-24 16:34:24 -05:00
|
|
|
// + literal: Const { ty: fn(usize) -> usize {id::<usize>}, val: Value(<ZST>) }
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
nop; // scope 1 at $DIR/dead_stores_better.rs:+4:9: +4:10
|
|
|
|
nop; // scope 0 at $DIR/dead_stores_better.rs:+5:1: +5:2
|
|
|
|
return; // scope 0 at $DIR/dead_stores_better.rs:+5:2: +5:2
|
|
|
|
}
|
|
|
|
}
|