rust/tests/mir-opt/inline/inline_options.main.Inline.after.mir
2023-04-06 10:08:07 +01:00

56 lines
3.2 KiB
Rust

// MIR for `main` after Inline
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/inline_options.rs:+0:11: +0:11
let _1: (); // in scope 0 at $DIR/inline_options.rs:+1:5: +1:18
let _2: (); // in scope 0 at $DIR/inline_options.rs:+2:5: +2:21
scope 1 (inlined inlined::<u32>) { // at $DIR/inline_options.rs:11:5: 11:21
let _3: (); // in scope 1 at $DIR/inline_options.rs:17:23: 17:26
let _4: (); // in scope 1 at $DIR/inline_options.rs:17:28: 17:31
let _5: (); // in scope 1 at $DIR/inline_options.rs:17:33: 17:36
}
bb0: {
StorageLive(_1); // scope 0 at $DIR/inline_options.rs:+1:5: +1:18
_1 = not_inlined() -> bb1; // scope 0 at $DIR/inline_options.rs:+1:5: +1:18
// mir::Constant
// + span: $DIR/inline_options.rs:10:5: 10:16
// + literal: Const { ty: fn() {not_inlined}, val: Value(<ZST>) }
}
bb1: {
StorageDead(_1); // scope 0 at $DIR/inline_options.rs:+1:18: +1:19
StorageLive(_2); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
StorageLive(_3); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
StorageLive(_4); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
StorageLive(_5); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
_3 = g() -> bb3; // scope 1 at $DIR/inline_options.rs:17:23: 17:26
// mir::Constant
// + span: $DIR/inline_options.rs:17:23: 17:24
// + literal: Const { ty: fn() {g}, val: Value(<ZST>) }
}
bb2: {
StorageDead(_5); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
StorageDead(_4); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
StorageDead(_3); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
StorageDead(_2); // scope 0 at $DIR/inline_options.rs:+2:21: +2:22
_0 = const (); // scope 0 at $DIR/inline_options.rs:+0:11: +3:2
return; // scope 0 at $DIR/inline_options.rs:+3:2: +3:2
}
bb3: {
_4 = g() -> bb4; // scope 1 at $DIR/inline_options.rs:17:28: 17:31
// mir::Constant
// + span: $DIR/inline_options.rs:17:28: 17:29
// + literal: Const { ty: fn() {g}, val: Value(<ZST>) }
}
bb4: {
_5 = g() -> bb2; // scope 1 at $DIR/inline_options.rs:17:33: 17:36
// mir::Constant
// + span: $DIR/inline_options.rs:17:33: 17:34
// + literal: Const { ty: fn() {g}, val: Value(<ZST>) }
}
}