fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1- // MIR for `default` before Inline 2+ // MIR for `default` after Inline 3 4 fn default() -> () { 5 let mut _0: (); 6 let _1: (); 7 let _2: (); 8 let _3: (); 9 let _4: (); 10+ scope 1 (inlined instruction_set_default) { 11+ } 12+ scope 2 (inlined inline_always_and_using_inline_asm) { 13+ scope 3 { 14+ } 15+ } 16 17 bb0: { 18 StorageLive(_1); 19 _1 = instruction_set_a32() -> [return: bb1, unwind unreachable]; 20 } 21 22 bb1: { 23 StorageDead(_1); 24 StorageLive(_2); 25 _2 = instruction_set_t32() -> [return: bb2, unwind unreachable]; 26 } 27 28 bb2: { 29 StorageDead(_2); 30 StorageLive(_3); 31- _3 = instruction_set_default() -> [return: bb3, unwind unreachable]; 32- } 33- 34- bb3: { 35 StorageDead(_3); 36 StorageLive(_4); 37- _4 = inline_always_and_using_inline_asm() -> [return: bb4, unwind unreachable]; 38+ asm!("/* do nothing */", options((empty))) -> [return: bb3, unwind unreachable]; 39 } 40 41- bb4: { 42+ bb3: { 43 StorageDead(_4); 44 _0 = const (); 45 return; 46 } 47 } 48