]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff
Auto merge of #83314 - Aaron1011:print-unstable-value, r=lcnr
[rust.git] / src / test / mir-opt / simplify_cfg.main.SimplifyCfg-initial.diff
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;                     // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
12 +         falseUnwind -> [real: bb1, cleanup: bb5]; // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
13       }
14   
15       bb1: {
16 -         falseUnwind -> [real: bb2, cleanup: bb10]; // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
17 -     }
18
19 -     bb2: {
20           StorageLive(_2);                 // scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17
21 -         _2 = bar() -> [return: bb3, unwind: bb10]; // scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17
22 +         _2 = bar() -> [return: bb2, unwind: bb5]; // scope 0 at $DIR/simplify_cfg.rs:7:12: 7:17
23                                            // mir::Constant
24                                            // + span: $DIR/simplify_cfg.rs:7:12: 7:15
25                                            // + literal: Const { ty: fn() -> bool {bar}, val: Value(Scalar(<ZST>)) }
26       }
27   
28 -     bb3: {
29 -         switchInt(move _2) -> [false: bb5, otherwise: bb4]; // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
30 +     bb2: {
31 +         switchInt(move _2) -> [false: bb4, otherwise: bb3]; // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
32       }
33   
34 -     bb4: {
35 +     bb3: {
36           _0 = const ();                   // scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18
37 -         goto -> bb9;                     // scope 0 at $DIR/simplify_cfg.rs:8:13: 8:18
38 +         StorageDead(_2);                 // scope 0 at $DIR/simplify_cfg.rs:9:9: 9:10
39 +         return;                          // scope 0 at $DIR/simplify_cfg.rs:11:2: 11:2
40       }
41   
42 -     bb5: {
43 +     bb4: {
44           _1 = const ();                   // scope 0 at $DIR/simplify_cfg.rs:9:10: 9:10
45 -         goto -> bb8;                     // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
46 -     }
47
48 -     bb6: {
49 -         unreachable;                     // scope 0 at $DIR/simplify_cfg.rs:7:18: 9:10
50 -     }
51
52 -     bb7: {
53 -         goto -> bb8;                     // scope 0 at $DIR/simplify_cfg.rs:7:9: 9:10
54 -     }
55
56 -     bb8: {
57           StorageDead(_2);                 // scope 0 at $DIR/simplify_cfg.rs:9:9: 9:10
58 -         goto -> bb1;                     // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
59 +         goto -> bb0;                     // scope 0 at $DIR/simplify_cfg.rs:6:5: 10:6
60       }
61   
62 -     bb9: {
63 -         StorageDead(_2);                 // scope 0 at $DIR/simplify_cfg.rs:9:9: 9:10
64 -         return;                          // scope 0 at $DIR/simplify_cfg.rs:11:2: 11:2
65 -     }
66
67 -     bb10 (cleanup): {
68 +     bb5 (cleanup): {
69           resume;                          // scope 0 at $DIR/simplify_cfg.rs:5:1: 11:2
70       }
71   }
72