| - // MIR for `main` before UnreachablePropagation |
| + // MIR for `main` after UnreachablePropagation |
| |
| fn main() -> () { |
| let mut _0: (); // return place in scope 0 at $DIR/unreachable_asm_2.rs:10:11: 10:11 |
| let mut _1: std::option::Option<Empty>; // in scope 0 at $DIR/unreachable_asm_2.rs:11:23: 11:30 |
| let mut _2: isize; // in scope 0 at $DIR/unreachable_asm_2.rs:11:12: 11:20 |
| let _3: Empty; // in scope 0 at $DIR/unreachable_asm_2.rs:11:17: 11:19 |
| let _5: (); // in scope 0 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| let mut _6: bool; // in scope 0 at $DIR/unreachable_asm_2.rs:14:12: 14:16 |
| let _7: (); // in scope 0 at $DIR/unreachable_asm_2.rs:16:13: 16:41 |
| let _8: (); // in scope 0 at $DIR/unreachable_asm_2.rs:20:13: 20:41 |
| let mut _9: !; // in scope 0 at $DIR/unreachable_asm_2.rs:24:9: 24:21 |
| scope 1 { |
| debug _x => _3; // in scope 1 at $DIR/unreachable_asm_2.rs:11:17: 11:19 |
| let mut _4: i32; // in scope 1 at $DIR/unreachable_asm_2.rs:12:13: 12:19 |
| scope 2 { |
| debug _y => _4; // in scope 2 at $DIR/unreachable_asm_2.rs:12:13: 12:19 |
| scope 3 { |
| } |
| scope 4 { |
| } |
| } |
| } |
| |
| bb0: { |
| StorageLive(_1); // scope 0 at $DIR/unreachable_asm_2.rs:11:23: 11:30 |
| _1 = const empty() -> bb1; // scope 0 at $DIR/unreachable_asm_2.rs:11:23: 11:30 |
| // ty::Const |
| // + ty: fn() -> std::option::Option<Empty> {empty} |
| // + val: Value(Scalar(<ZST>)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:11:23: 11:28 |
| // + literal: Const { ty: fn() -> std::option::Option<Empty> {empty}, val: Value(Scalar(<ZST>)) } |
| } |
| |
| bb1: { |
| _2 = discriminant(_1); // scope 0 at $DIR/unreachable_asm_2.rs:11:12: 11:20 |
| switchInt(move _2) -> [1_isize: bb3, otherwise: bb2]; // scope 0 at $DIR/unreachable_asm_2.rs:11:12: 11:20 |
| } |
| |
| bb2: { |
| _0 = const (); // scope 0 at $DIR/unreachable_asm_2.rs:11:5: 25:6 |
| // ty::Const |
| // + ty: () |
| // + val: Value(Scalar(<ZST>)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:11:5: 25:6 |
| // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } |
| StorageDead(_1); // scope 0 at $DIR/unreachable_asm_2.rs:26:1: 26:2 |
| return; // scope 0 at $DIR/unreachable_asm_2.rs:26:2: 26:2 |
| } |
| |
| bb3: { |
| StorageLive(_3); // scope 0 at $DIR/unreachable_asm_2.rs:11:17: 11:19 |
| _3 = move ((_1 as Some).0: Empty); // scope 0 at $DIR/unreachable_asm_2.rs:11:17: 11:19 |
| StorageLive(_4); // scope 1 at $DIR/unreachable_asm_2.rs:12:13: 12:19 |
| StorageLive(_5); // scope 2 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| StorageLive(_6); // scope 2 at $DIR/unreachable_asm_2.rs:14:12: 14:16 |
| _6 = const true; // scope 2 at $DIR/unreachable_asm_2.rs:14:12: 14:16 |
| // ty::Const |
| // + ty: bool |
| // + val: Value(Scalar(0x01)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:14:12: 14:16 |
| // + literal: Const { ty: bool, val: Value(Scalar(0x01)) } |
| switchInt(_6) -> [false: bb4, otherwise: bb5]; // scope 2 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| } |
| |
| bb4: { |
| StorageLive(_8); // scope 2 at $DIR/unreachable_asm_2.rs:20:13: 20:41 |
| llvm_asm!(LlvmInlineAsmInner { asm: "NOP", asm_str_style: Cooked, outputs: [], inputs: [], clobbers: [], volatile: true, alignstack: false, dialect: Att } : [] : []); // scope 4 at $DIR/unreachable_asm_2.rs:20:22: 20:39 |
| _8 = const (); // scope 4 at $DIR/unreachable_asm_2.rs:20:13: 20:41 |
| // ty::Const |
| // + ty: () |
| // + val: Value(Scalar(<ZST>)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:20:13: 20:41 |
| // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } |
| StorageDead(_8); // scope 2 at $DIR/unreachable_asm_2.rs:20:40: 20:41 |
| _4 = const 42_i32; // scope 2 at $DIR/unreachable_asm_2.rs:21:13: 21:20 |
| // ty::Const |
| // + ty: i32 |
| // + val: Value(Scalar(0x0000002a)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:21:18: 21:20 |
| // + literal: Const { ty: i32, val: Value(Scalar(0x0000002a)) } |
| _5 = const (); // scope 2 at $DIR/unreachable_asm_2.rs:18:16: 22:10 |
| // ty::Const |
| // + ty: () |
| // + val: Value(Scalar(<ZST>)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:18:16: 22:10 |
| // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } |
| - goto -> bb6; // scope 2 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| + unreachable; // scope 2 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| } |
| |
| bb5: { |
| StorageLive(_7); // scope 2 at $DIR/unreachable_asm_2.rs:16:13: 16:41 |
| llvm_asm!(LlvmInlineAsmInner { asm: "NOP", asm_str_style: Cooked, outputs: [], inputs: [], clobbers: [], volatile: true, alignstack: false, dialect: Att } : [] : []); // scope 3 at $DIR/unreachable_asm_2.rs:16:22: 16:39 |
| _7 = const (); // scope 3 at $DIR/unreachable_asm_2.rs:16:13: 16:41 |
| // ty::Const |
| // + ty: () |
| // + val: Value(Scalar(<ZST>)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:16:13: 16:41 |
| // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } |
| StorageDead(_7); // scope 2 at $DIR/unreachable_asm_2.rs:16:40: 16:41 |
| _4 = const 21_i32; // scope 2 at $DIR/unreachable_asm_2.rs:17:13: 17:20 |
| // ty::Const |
| // + ty: i32 |
| // + val: Value(Scalar(0x00000015)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:17:18: 17:20 |
| // + literal: Const { ty: i32, val: Value(Scalar(0x00000015)) } |
| _5 = const (); // scope 2 at $DIR/unreachable_asm_2.rs:14:17: 18:10 |
| // ty::Const |
| // + ty: () |
| // + val: Value(Scalar(<ZST>)) |
| // mir::Constant |
| // + span: $DIR/unreachable_asm_2.rs:14:17: 18:10 |
| // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } |
| - goto -> bb6; // scope 2 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| - } |
| - |
| - bb6: { |
| - StorageDead(_6); // scope 2 at $DIR/unreachable_asm_2.rs:22:9: 22:10 |
| - StorageDead(_5); // scope 2 at $DIR/unreachable_asm_2.rs:22:9: 22:10 |
| - StorageLive(_9); // scope 2 at $DIR/unreachable_asm_2.rs:24:9: 24:21 |
| - unreachable; // scope 2 at $DIR/unreachable_asm_2.rs:24:15: 24:17 |
| + unreachable; // scope 2 at $DIR/unreachable_asm_2.rs:14:9: 22:10 |
| } |
| } |
| |