fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1- // MIR for `main` before SimplifyCfg-initial 2+ // MIR for `main` after SimplifyCfg-initial 3 4 fn main() -> () { 5 let mut _0: (); // return place in scope 0 at $DIR/simplify_cfg.rs:5:11: 5:11 6 let mut _1: (); // in scope 0 at $DIR/simplify_cfg.rs:5:1: 11:2 7 let mut _2: bool; // in scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 8 let mut _3: !; // in scope 0 at $DIR/simplify_cfg.rs:7:18: 9:10 9 10 bb0: { 11- goto -> bb1; // bb0[0]: scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6 12+ falseUnwind -> [real: bb1, cleanup: bb2]; // bb0[0]: scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6 13 } 14 15 bb1: { 16- falseUnwind -> [real: bb3, cleanup: bb4]; // bb1[0]: scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6 17- } 18- 19- bb2: { 20- goto -> bb13; // bb2[0]: scope 0 at $DIR/simplify_cfg.rs:11:2: 11:2 21- } 22- 23- bb3: { 24- StorageLive(_2); // bb3[0]: scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 25- _2 = const bar() -> [return: bb5, unwind: bb4]; // bb3[1]: scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 26+ StorageLive(_2); // bb1[0]: scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 27+ _2 = const bar() -> [return: bb3, unwind: bb2]; // bb1[1]: scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 28 // ty::Const 29 // + ty: fn() -> bool {bar} 30 // + val: Value(Scalar(<ZST>)) 31 // mir::Constant 32 // + span: $DIR/simplify_cfg.rs:7:12: 7:15 33 // + literal: Const { ty: fn() -> bool {bar}, val: Value(Scalar(<ZST>)) } 34 } 35 36- bb4 (cleanup): { 37- resume; // bb4[0]: scope 0 at $DIR/simplify_cfg.rs:5:1: 11:2 38+ bb2 (cleanup): { 39+ resume; // bb2[0]: scope 0 at $DIR/simplify_cfg.rs:5:1: 11:2 40 } 41 42- bb5: { 43- FakeRead(ForMatchedPlace, _2); // bb5[0]: scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 44- switchInt(_2) -> [false: bb7, otherwise: bb6]; // bb5[1]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 45+ bb3: { 46+ FakeRead(ForMatchedPlace, _2); // bb3[0]: scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17 47+ switchInt(_2) -> [false: bb5, otherwise: bb4]; // bb3[1]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 48 } 49 50- bb6: { 51- falseEdges -> [real: bb8, imaginary: bb7]; // bb6[0]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 52+ bb4: { 53+ falseEdges -> [real: bb6, imaginary: bb5]; // bb4[0]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 54 } 55 56- bb7: { 57- _1 = const (); // bb7[0]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 58+ bb5: { 59+ _1 = const (); // bb5[0]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 60 // ty::Const 61 // + ty: () 62 // + val: Value(Scalar(<ZST>)) 63 // mir::Constant 64 // + span: $DIR/simplify_cfg.rs:7:9: 9:10 65 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } 66- goto -> bb12; // bb7[1]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 67+ StorageDead(_2); // bb5[1]: scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6 68+ goto -> bb0; // bb5[2]: scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6 69 } 70 71- bb8: { 72- _0 = const (); // bb8[0]: scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18 73+ bb6: { 74+ _0 = const (); // bb6[0]: scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18 75 // ty::Const 76 // + ty: () 77 // + val: Value(Scalar(<ZST>)) 78 // mir::Constant 79 // + span: $DIR/simplify_cfg.rs:8:13: 8:18 80 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) } 81- goto -> bb9; // bb8[1]: scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18 82- } 83- 84- bb9: { 85- StorageDead(_2); // bb9[0]: scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6 86- goto -> bb2; // bb9[1]: scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18 87- } 88- 89- bb10: { 90- unreachable; // bb10[0]: scope 0 at $DIR/simplify_cfg.rs:7:18: 9:10 91- } 92- 93- bb11: { 94- goto -> bb12; // bb11[0]: scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10 95- } 96- 97- bb12: { 98- StorageDead(_2); // bb12[0]: scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6 99- goto -> bb1; // bb12[1]: scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6 100- } 101- 102- bb13: { 103- return; // bb13[0]: scope 0 at $DIR/simplify_cfg.rs:11:2: 11:2 104+ StorageDead(_2); // bb6[1]: scope 0 at $DIR/simplify_cfg.rs:10:5: 10:6 105+ return; // bb6[2]: scope 0 at $DIR/simplify_cfg.rs:11:2: 11:2 106 } 107 } 108