56 lines
3.7 KiB
Plaintext
56 lines
3.7 KiB
Plaintext
// MIR for `main` after SimplifyLocals
|
|
|
|
fn main() -> () {
|
|
let mut _0: (); // return place in scope 0 at $DIR/optimizes_into_variable.rs:11:11: 11:11
|
|
let _1: i32; // in scope 0 at $DIR/optimizes_into_variable.rs:12:9: 12:10
|
|
scope 1 {
|
|
debug x => _1; // in scope 1 at $DIR/optimizes_into_variable.rs:12:9: 12:10
|
|
let _2: i32; // in scope 1 at $DIR/optimizes_into_variable.rs:13:9: 13:10
|
|
scope 2 {
|
|
debug y => _2; // in scope 2 at $DIR/optimizes_into_variable.rs:13:9: 13:10
|
|
let _3: u32; // in scope 2 at $DIR/optimizes_into_variable.rs:14:9: 14:10
|
|
scope 3 {
|
|
debug z => _3; // in scope 3 at $DIR/optimizes_into_variable.rs:14:9: 14:10
|
|
}
|
|
}
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1); // scope 0 at $DIR/optimizes_into_variable.rs:12:9: 12:10
|
|
_1 = const 4_i32; // scope 0 at $DIR/optimizes_into_variable.rs:12:13: 12:18
|
|
// ty::Const
|
|
// + ty: i32
|
|
// + val: Value(Scalar(0x00000004))
|
|
// mir::Constant
|
|
// + span: $DIR/optimizes_into_variable.rs:12:13: 12:18
|
|
// + literal: Const { ty: i32, val: Value(Scalar(0x00000004)) }
|
|
StorageLive(_2); // scope 1 at $DIR/optimizes_into_variable.rs:13:9: 13:10
|
|
_2 = const 3_i32; // scope 1 at $DIR/optimizes_into_variable.rs:13:13: 13:34
|
|
// ty::Const
|
|
// + ty: i32
|
|
// + val: Value(Scalar(0x00000003))
|
|
// mir::Constant
|
|
// + span: $DIR/optimizes_into_variable.rs:13:13: 13:34
|
|
// + literal: Const { ty: i32, val: Value(Scalar(0x00000003)) }
|
|
StorageLive(_3); // scope 2 at $DIR/optimizes_into_variable.rs:14:9: 14:10
|
|
_3 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:14:13: 14:38
|
|
// ty::Const
|
|
// + ty: u32
|
|
// + val: Value(Scalar(0x0000002a))
|
|
// mir::Constant
|
|
// + span: $DIR/optimizes_into_variable.rs:14:13: 14:38
|
|
// + literal: Const { ty: u32, val: Value(Scalar(0x0000002a)) }
|
|
_0 = const (); // scope 0 at $DIR/optimizes_into_variable.rs:11:11: 15:2
|
|
// ty::Const
|
|
// + ty: ()
|
|
// + val: Value(Scalar(<ZST>))
|
|
// mir::Constant
|
|
// + span: $DIR/optimizes_into_variable.rs:11:11: 15:2
|
|
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
|
|
StorageDead(_3); // scope 2 at $DIR/optimizes_into_variable.rs:15:1: 15:2
|
|
StorageDead(_2); // scope 1 at $DIR/optimizes_into_variable.rs:15:1: 15:2
|
|
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:15:1: 15:2
|
|
return; // scope 0 at $DIR/optimizes_into_variable.rs:15:2: 15:2
|
|
}
|
|
}
|