fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `references` before GVN 2+ // MIR for `references` after GVN 3 4 fn references(_1: impl Sized) -> () { 5 debug x => _1; 6 let mut _0: (); 7 let _2: (); 8 let mut _3: &impl Sized; 9 let _4: (); 10 let mut _5: &impl Sized; 11 let _6: (); 12 let mut _7: &mut impl Sized; 13 let _8: (); 14 let mut _9: &mut impl Sized; 15 let _10: (); 16 let mut _11: *const impl Sized; 17 let _12: (); 18 let mut _13: *const impl Sized; 19 let _14: (); 20 let mut _15: *mut impl Sized; 21 let _16: (); 22 let mut _17: *mut impl Sized; 23 24 bb0: { 25 StorageLive(_2); 26 StorageLive(_3); 27 _3 = &_1; 28 _2 = opaque::<&impl Sized>(move _3) -> [return: bb1, unwind unreachable]; 29 } 30 31 bb1: { 32 StorageDead(_3); 33 StorageDead(_2); 34 StorageLive(_4); 35 StorageLive(_5); 36 _5 = &_1; 37 _4 = opaque::<&impl Sized>(move _5) -> [return: bb2, unwind unreachable]; 38 } 39 40 bb2: { 41 StorageDead(_5); 42 StorageDead(_4); 43 StorageLive(_6); 44 StorageLive(_7); 45 _7 = &mut _1; 46 _6 = opaque::<&mut impl Sized>(move _7) -> [return: bb3, unwind unreachable]; 47 } 48 49 bb3: { 50 StorageDead(_7); 51 StorageDead(_6); 52 StorageLive(_8); 53 StorageLive(_9); 54 _9 = &mut _1; 55 _8 = opaque::<&mut impl Sized>(move _9) -> [return: bb4, unwind unreachable]; 56 } 57 58 bb4: { 59 StorageDead(_9); 60 StorageDead(_8); 61 StorageLive(_10); 62 StorageLive(_11); 63 _11 = &raw const _1; 64 _10 = opaque::<*const impl Sized>(move _11) -> [return: bb5, unwind unreachable]; 65 } 66 67 bb5: { 68 StorageDead(_11); 69 StorageDead(_10); 70 StorageLive(_12); 71 StorageLive(_13); 72 _13 = &raw const _1; 73 _12 = opaque::<*const impl Sized>(move _13) -> [return: bb6, unwind unreachable]; 74 } 75 76 bb6: { 77 StorageDead(_13); 78 StorageDead(_12); 79 StorageLive(_14); 80 StorageLive(_15); 81 _15 = &raw mut _1; 82 _14 = opaque::<*mut impl Sized>(move _15) -> [return: bb7, unwind unreachable]; 83 } 84 85 bb7: { 86 StorageDead(_15); 87 StorageDead(_14); 88 StorageLive(_16); 89 StorageLive(_17); 90 _17 = &raw mut _1; 91 _16 = opaque::<*mut impl Sized>(move _17) -> [return: bb8, unwind unreachable]; 92 } 93 94 bb8: { 95 StorageDead(_17); 96 StorageDead(_16); 97 _0 = const (); 98 drop(_1) -> [return: bb9, unwind unreachable]; 99 } 100 101 bb9: { 102 return; 103 } 104 } 105