]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
[rust.git] / src / test / mir-opt / loop_test.main.SimplifyCfg-promote-consts.after.mir
1 // MIR for `main` after SimplifyCfg-promote-consts
2
3 fn main() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/loop_test.rs:6:11: 6:11
5     let _1: ();                          // in scope 0 at $DIR/loop_test.rs:10:5: 12:6
6     let mut _2: bool;                    // in scope 0 at $DIR/loop_test.rs:10:8: 10:12
7     let mut _3: !;                       // in scope 0 at $DIR/loop_test.rs:10:13: 12:6
8     let mut _4: !;                       // in scope 0 at $DIR/loop_test.rs:13:5: 16:6
9     let mut _5: ();                      // in scope 0 at $DIR/loop_test.rs:6:1: 17:2
10     let _6: i32;                         // in scope 0 at $DIR/loop_test.rs:14:13: 14:14
11     scope 1 {
12         debug x => _6;                   // in scope 1 at $DIR/loop_test.rs:14:13: 14:14
13     }
14
15     bb0: {
16         StorageLive(_1);                 // scope 0 at $DIR/loop_test.rs:10:5: 12:6
17         StorageLive(_2);                 // scope 0 at $DIR/loop_test.rs:10:8: 10:12
18         _2 = const true;                 // scope 0 at $DIR/loop_test.rs:10:8: 10:12
19         FakeRead(ForMatchedPlace, _2);   // scope 0 at $DIR/loop_test.rs:10:8: 10:12
20         switchInt(_2) -> [false: bb3, otherwise: bb2]; // scope 0 at $DIR/loop_test.rs:10:5: 12:6
21     }
22
23     bb1 (cleanup): {
24         resume;                          // scope 0 at $DIR/loop_test.rs:6:1: 17:2
25     }
26
27     bb2: {
28         falseEdge -> [real: bb4, imaginary: bb3]; // scope 0 at $DIR/loop_test.rs:10:5: 12:6
29     }
30
31     bb3: {
32         _1 = const ();                   // scope 0 at $DIR/loop_test.rs:10:5: 12:6
33         StorageDead(_2);                 // scope 0 at $DIR/loop_test.rs:12:5: 12:6
34         StorageDead(_1);                 // scope 0 at $DIR/loop_test.rs:12:5: 12:6
35         StorageLive(_4);                 // scope 0 at $DIR/loop_test.rs:13:5: 16:6
36         goto -> bb5;                     // scope 0 at $DIR/loop_test.rs:13:5: 16:6
37     }
38
39     bb4: {
40         _0 = const ();                   // scope 0 at $DIR/loop_test.rs:11:9: 11:15
41         StorageDead(_2);                 // scope 0 at $DIR/loop_test.rs:12:5: 12:6
42         StorageDead(_1);                 // scope 0 at $DIR/loop_test.rs:12:5: 12:6
43         return;                          // scope 0 at $DIR/loop_test.rs:17:2: 17:2
44     }
45
46     bb5: {
47         falseUnwind -> [real: bb6, cleanup: bb1]; // scope 0 at $DIR/loop_test.rs:13:5: 16:6
48     }
49
50     bb6: {
51         StorageLive(_6);                 // scope 0 at $DIR/loop_test.rs:14:13: 14:14
52         _6 = const 1_i32;                // scope 0 at $DIR/loop_test.rs:14:17: 14:18
53         FakeRead(ForLet, _6);            // scope 0 at $DIR/loop_test.rs:14:13: 14:14
54         StorageDead(_6);                 // scope 0 at $DIR/loop_test.rs:16:5: 16:6
55         goto -> bb5;                     // scope 0 at $DIR/loop_test.rs:15:9: 15:17
56     }
57 }