]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/const_allocation2.main.ConstProp.after.32bit.mir
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / mir-opt / const_allocation2.main.ConstProp.after.32bit.mir
1 // MIR for `main` after ConstProp
2
3 fn main() -> () {
4 let mut _0: ();
5 let _1: &[(std::option::Option<i32>, &[&u8])];
6 let mut _2: &&[(std::option::Option<i32>, &[&u8])];
7
8 bb0: {
9 StorageLive(_1);
10 StorageLive(_2);
11 _2 = const {ALLOC9: &&[(Option<i32>, &[&u8])]};
12 _1 = (*_2);
13 StorageDead(_2);
14 StorageDead(_1);
15 _0 = const ();
16 return;
17 }
18 }
19
20 ALLOC9 (static: FOO, size: 8, align: 4) {
21 ╾ALLOC0<imm>╼ 03 00 00 00 │ ╾──╼....
22 }
23
24 ALLOC0 (size: 48, align: 4) {
25 0x00 │ 00 00 00 00 __ __ __ __ ╾ALLOC1<imm>╼ 00 00 00 00 │ ....░░░░╾──╼....
26 0x10 │ 00 00 00 00 __ __ __ __ ╾ALLOC2<imm>╼ 02 00 00 00 │ ....░░░░╾──╼....
27 0x20 │ 01 00 00 00 2a 00 00 00 ╾ALLOC3<imm>╼ 03 00 00 00 │ ....*...╾──╼....
28 }
29
30 ALLOC1 (size: 0, align: 4) {}
31
32 ALLOC2 (size: 8, align: 4) {
33 ╾ALLOC4<imm>╼ ╾ALLOC5<imm>╼ │ ╾──╼╾──╼
34 }
35
36 ALLOC4 (size: 1, align: 1) {
37 05 │ .
38 }
39
40 ALLOC5 (size: 1, align: 1) {
41 06 │ .
42 }
43
44 ALLOC3 (size: 12, align: 4) {
45 ╾ALLOC6+0x3<imm>╼ ╾ALLOC7<imm>╼ ╾ALLOC8+0x2<imm>╼ │ ╾──╼╾──╼╾──╼
46 }
47
48 ALLOC6 (size: 4, align: 1) {
49 2a 45 15 6f │ *E.o
50 }
51
52 ALLOC7 (size: 1, align: 1) {
53 2a │ *
54 }
55
56 ALLOC8 (size: 4, align: 1) {
57 2a 45 15 6f │ *E.o
58 }