2022-12-04 13:20:55 -06:00
|
|
|
- // MIR for `r` before SimplifyLocals-before-const-prop
|
|
|
|
+ // MIR for `r` after SimplifyLocals-before-const-prop
|
2020-10-25 19:00:00 -05:00
|
|
|
|
|
|
|
fn r() -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/simplify_locals.rs:+0:8: +0:8
|
|
|
|
let mut _1: i32; // in scope 0 at $DIR/simplify_locals.rs:+1:9: +1:14
|
|
|
|
- let mut _2: &i32; // in scope 0 at $DIR/simplify_locals.rs:+3:13: +3:15
|
|
|
|
- let mut _3: &mut i32; // in scope 0 at $DIR/simplify_locals.rs:+4:13: +4:19
|
2020-10-25 19:00:00 -05:00
|
|
|
scope 1 {
|
2022-11-02 16:54:49 -05:00
|
|
|
debug a => _1; // in scope 1 at $DIR/simplify_locals.rs:+1:9: +1:14
|
2020-10-25 19:00:00 -05:00
|
|
|
scope 2 {
|
|
|
|
scope 3 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/simplify_locals.rs:+1:9: +1:14
|
|
|
|
_1 = const 1_i32; // scope 0 at $DIR/simplify_locals.rs:+1:17: +1:18
|
|
|
|
- StorageLive(_2); // scope 1 at $DIR/simplify_locals.rs:+3:13: +3:15
|
|
|
|
- _2 = &_1; // scope 1 at $DIR/simplify_locals.rs:+3:13: +3:15
|
|
|
|
- StorageDead(_2); // scope 1 at $DIR/simplify_locals.rs:+3:15: +3:16
|
|
|
|
- StorageLive(_3); // scope 2 at $DIR/simplify_locals.rs:+4:13: +4:19
|
|
|
|
- _3 = &mut _1; // scope 2 at $DIR/simplify_locals.rs:+4:13: +4:19
|
|
|
|
- StorageDead(_3); // scope 2 at $DIR/simplify_locals.rs:+4:19: +4:20
|
|
|
|
_0 = const (); // scope 0 at $DIR/simplify_locals.rs:+0:8: +5:2
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/simplify_locals.rs:+5:1: +5:2
|
|
|
|
return; // scope 0 at $DIR/simplify_locals.rs:+5:2: +5:2
|
2020-10-25 19:00:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|