rust/tests/mir-opt/simplify_locals.r.SimplifyLocals-before-const-prop.diff

32 lines
659 B
Diff
Raw Normal View History

2022-12-04 13:20:55 -06:00
- // MIR for `r` before SimplifyLocals-before-const-prop
+ // MIR for `r` after SimplifyLocals-before-const-prop
fn r() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let mut _1: i32;
- let mut _2: &i32;
- let mut _3: &mut i32;
scope 1 {
2023-06-06 08:47:00 -05:00
debug a => _1;
scope 2 {
scope 3 {
}
}
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
_1 = const 1_i32;
- StorageLive(_2);
- _2 = &_1;
- StorageDead(_2);
- StorageLive(_3);
- _3 = &mut _1;
- StorageDead(_3);
_0 = const ();
StorageDead(_1);
return;
}
}