]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_debuginfo.main.ConstDebugInfo.diff
Auto merge of #96978 - lqd:win_pgo2, r=Mark-Simulacrum
[rust.git] / src / test / mir-opt / const_debuginfo.main.ConstDebugInfo.diff
1 - // MIR for `main` before ConstDebugInfo
2 + // MIR for `main` after ConstDebugInfo
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/const_debuginfo.rs:8:11: 8:11
6       let _1: u8;                          // in scope 0 at $DIR/const_debuginfo.rs:9:9: 9:10
7       let mut _5: u8;                      // in scope 0 at $DIR/const_debuginfo.rs:12:15: 12:20
8       let mut _6: u8;                      // in scope 0 at $DIR/const_debuginfo.rs:12:15: 12:16
9       let mut _7: u8;                      // in scope 0 at $DIR/const_debuginfo.rs:12:19: 12:20
10       let mut _8: u8;                      // in scope 0 at $DIR/const_debuginfo.rs:12:23: 12:24
11       let mut _14: u32;                    // in scope 0 at $DIR/const_debuginfo.rs:21:13: 21:16
12       let mut _15: u32;                    // in scope 0 at $DIR/const_debuginfo.rs:21:19: 21:22
13       scope 1 {
14 -         debug x => _1;                   // in scope 1 at $DIR/const_debuginfo.rs:9:9: 9:10
15 +         debug x => const 1_u8;           // in scope 1 at $DIR/const_debuginfo.rs:9:9: 9:10
16           let _2: u8;                      // in scope 1 at $DIR/const_debuginfo.rs:10:9: 10:10
17           scope 2 {
18 -             debug y => _2;               // in scope 2 at $DIR/const_debuginfo.rs:10:9: 10:10
19 +             debug y => const 2_u8;       // in scope 2 at $DIR/const_debuginfo.rs:10:9: 10:10
20               let _3: u8;                  // in scope 2 at $DIR/const_debuginfo.rs:11:9: 11:10
21               scope 3 {
22 -                 debug z => _3;           // in scope 3 at $DIR/const_debuginfo.rs:11:9: 11:10
23 +                 debug z => const 3_u8;   // in scope 3 at $DIR/const_debuginfo.rs:11:9: 11:10
24                   let _4: u8;              // in scope 3 at $DIR/const_debuginfo.rs:12:9: 12:12
25                   scope 4 {
26 -                     debug sum => _4;     // in scope 4 at $DIR/const_debuginfo.rs:12:9: 12:12
27 +                     debug sum => const 6_u8; // in scope 4 at $DIR/const_debuginfo.rs:12:9: 12:12
28                       let _9: &str;        // in scope 4 at $DIR/const_debuginfo.rs:14:9: 14:10
29                       scope 5 {
30 -                         debug s => _9;   // in scope 5 at $DIR/const_debuginfo.rs:14:9: 14:10
31 +                         debug s => const "hello, world!"; // in scope 5 at $DIR/const_debuginfo.rs:14:9: 14:10
32                           let _10: (bool, bool, u32); // in scope 5 at $DIR/const_debuginfo.rs:16:9: 16:10
33                           scope 6 {
34                               debug f => _10; // in scope 6 at $DIR/const_debuginfo.rs:16:9: 16:10
35                               let _11: std::option::Option<u16>; // in scope 6 at $DIR/const_debuginfo.rs:18:9: 18:10
36                               scope 7 {
37                                   debug o => _11; // in scope 7 at $DIR/const_debuginfo.rs:18:9: 18:10
38                                   let _12: Point; // in scope 7 at $DIR/const_debuginfo.rs:20:9: 20:10
39                                   scope 8 {
40                                       debug p => _12; // in scope 8 at $DIR/const_debuginfo.rs:20:9: 20:10
41                                       let _13: u32; // in scope 8 at $DIR/const_debuginfo.rs:21:9: 21:10
42                                       scope 9 {
43 -                                         debug a => _13; // in scope 9 at $DIR/const_debuginfo.rs:21:9: 21:10
44 +                                         debug a => const 64_u32; // in scope 9 at $DIR/const_debuginfo.rs:21:9: 21:10
45                                       }
46                                   }
47                               }
48                           }
49                       }
50                   }
51               }
52           }
53       }
54   
55       bb0: {
56           StorageLive(_1);                 // scope 0 at $DIR/const_debuginfo.rs:9:9: 9:10
57           _1 = const 1_u8;                 // scope 0 at $DIR/const_debuginfo.rs:9:13: 9:16
58           StorageLive(_2);                 // scope 1 at $DIR/const_debuginfo.rs:10:9: 10:10
59           _2 = const 2_u8;                 // scope 1 at $DIR/const_debuginfo.rs:10:13: 10:16
60           StorageLive(_3);                 // scope 2 at $DIR/const_debuginfo.rs:11:9: 11:10
61           _3 = const 3_u8;                 // scope 2 at $DIR/const_debuginfo.rs:11:13: 11:16
62           StorageLive(_4);                 // scope 3 at $DIR/const_debuginfo.rs:12:9: 12:12
63           StorageLive(_5);                 // scope 3 at $DIR/const_debuginfo.rs:12:15: 12:20
64           StorageLive(_6);                 // scope 3 at $DIR/const_debuginfo.rs:12:15: 12:16
65           _6 = const 1_u8;                 // scope 3 at $DIR/const_debuginfo.rs:12:15: 12:16
66           StorageLive(_7);                 // scope 3 at $DIR/const_debuginfo.rs:12:19: 12:20
67           _7 = const 2_u8;                 // scope 3 at $DIR/const_debuginfo.rs:12:19: 12:20
68           _5 = const 3_u8;                 // scope 3 at $DIR/const_debuginfo.rs:12:15: 12:20
69           StorageDead(_7);                 // scope 3 at $DIR/const_debuginfo.rs:12:19: 12:20
70           StorageDead(_6);                 // scope 3 at $DIR/const_debuginfo.rs:12:19: 12:20
71           StorageLive(_8);                 // scope 3 at $DIR/const_debuginfo.rs:12:23: 12:24
72           _8 = const 3_u8;                 // scope 3 at $DIR/const_debuginfo.rs:12:23: 12:24
73           _4 = const 6_u8;                 // scope 3 at $DIR/const_debuginfo.rs:12:15: 12:24
74           StorageDead(_8);                 // scope 3 at $DIR/const_debuginfo.rs:12:23: 12:24
75           StorageDead(_5);                 // scope 3 at $DIR/const_debuginfo.rs:12:23: 12:24
76           StorageLive(_9);                 // scope 4 at $DIR/const_debuginfo.rs:14:9: 14:10
77           _9 = const "hello, world!";      // scope 4 at $DIR/const_debuginfo.rs:14:13: 14:28
78                                            // mir::Constant
79                                            // + span: $DIR/const_debuginfo.rs:14:13: 14:28
80                                            // + literal: Const { ty: &str, val: Value(Slice(..)) }
81           StorageLive(_10);                // scope 5 at $DIR/const_debuginfo.rs:16:9: 16:10
82           Deinit(_10);                     // scope 5 at $DIR/const_debuginfo.rs:16:13: 16:34
83           (_10.0: bool) = const true;      // scope 5 at $DIR/const_debuginfo.rs:16:13: 16:34
84           (_10.1: bool) = const false;     // scope 5 at $DIR/const_debuginfo.rs:16:13: 16:34
85           (_10.2: u32) = const 123_u32;    // scope 5 at $DIR/const_debuginfo.rs:16:13: 16:34
86           StorageLive(_11);                // scope 6 at $DIR/const_debuginfo.rs:18:9: 18:10
87           Deinit(_11);                     // scope 6 at $DIR/const_debuginfo.rs:18:13: 18:24
88           ((_11 as Some).0: u16) = const 99_u16; // scope 6 at $DIR/const_debuginfo.rs:18:13: 18:24
89           discriminant(_11) = 1;           // scope 6 at $DIR/const_debuginfo.rs:18:13: 18:24
90           StorageLive(_12);                // scope 7 at $DIR/const_debuginfo.rs:20:9: 20:10
91           Deinit(_12);                     // scope 7 at $DIR/const_debuginfo.rs:20:13: 20:35
92           (_12.0: u32) = const 32_u32;     // scope 7 at $DIR/const_debuginfo.rs:20:13: 20:35
93           (_12.1: u32) = const 32_u32;     // scope 7 at $DIR/const_debuginfo.rs:20:13: 20:35
94           StorageLive(_13);                // scope 8 at $DIR/const_debuginfo.rs:21:9: 21:10
95           StorageLive(_14);                // scope 8 at $DIR/const_debuginfo.rs:21:13: 21:16
96           _14 = const 32_u32;              // scope 8 at $DIR/const_debuginfo.rs:21:13: 21:16
97           StorageLive(_15);                // scope 8 at $DIR/const_debuginfo.rs:21:19: 21:22
98           _15 = const 32_u32;              // scope 8 at $DIR/const_debuginfo.rs:21:19: 21:22
99           _13 = const 64_u32;              // scope 8 at $DIR/const_debuginfo.rs:21:13: 21:22
100           StorageDead(_15);                // scope 8 at $DIR/const_debuginfo.rs:21:21: 21:22
101           StorageDead(_14);                // scope 8 at $DIR/const_debuginfo.rs:21:21: 21:22
102           nop;                             // scope 0 at $DIR/const_debuginfo.rs:8:11: 22:2
103           StorageDead(_13);                // scope 8 at $DIR/const_debuginfo.rs:22:1: 22:2
104           StorageDead(_12);                // scope 7 at $DIR/const_debuginfo.rs:22:1: 22:2
105           StorageDead(_11);                // scope 6 at $DIR/const_debuginfo.rs:22:1: 22:2
106           StorageDead(_10);                // scope 5 at $DIR/const_debuginfo.rs:22:1: 22:2
107           StorageDead(_9);                 // scope 4 at $DIR/const_debuginfo.rs:22:1: 22:2
108           StorageDead(_4);                 // scope 3 at $DIR/const_debuginfo.rs:22:1: 22:2
109           StorageDead(_3);                 // scope 2 at $DIR/const_debuginfo.rs:22:1: 22:2
110           StorageDead(_2);                 // scope 1 at $DIR/const_debuginfo.rs:22:1: 22:2
111           StorageDead(_1);                 // scope 0 at $DIR/const_debuginfo.rs:22:1: 22:2
112           return;                          // scope 0 at $DIR/const_debuginfo.rs:22:2: 22:2
113       }
114   }
115