fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.5 KiB71 linesraw
1- // MIR for `main` before DestinationPropagation
2+ // MIR for `main` after DestinationPropagation
3  
4  fn main() -> () {
5      let mut _0: ();
6      let mut _1: i32;
7      let mut _4: i32;
8      let _5: ();
9      let mut _6: i32;
10      scope 1 {
11-         debug x => _1;
12+         debug x => _6;
13          let _2: i32;
14          scope 2 {
15-             debug y => _2;
16+             debug y => _6;
17              let _3: i32;
18              scope 3 {
19-                 debug z => _3;
20+                 debug z => _6;
21              }
22          }
23      }
24  
25      bb0: {
26-         StorageLive(_1);
27-         _1 = val() -> [return: bb1, unwind unreachable];
28+         nop;
29+         _6 = val() -> [return: bb1, unwind unreachable];
30      }
31  
32      bb1: {
33-         StorageLive(_2);
34-         _2 = _1;
35-         StorageLive(_3);
36-         _3 = _2;
37-         StorageLive(_4);
38-         _4 = _3;
39-         _1 = move _4;
40-         StorageDead(_4);
41+         nop;
42+         nop;
43+         nop;
44+         nop;
45+         nop;
46+         nop;
47+         nop;
48+         nop;
49          StorageLive(_5);
50-         StorageLive(_6);
51-         _6 = _1;
52+         nop;
53+         nop;
54          _5 = std::mem::drop::<i32>(move _6) -> [return: bb2, unwind unreachable];
55      }
56  
57      bb2: {
58-         StorageDead(_6);
59+         nop;
60          StorageDead(_5);
61          _0 = const ();
62-         StorageDead(_3);
63-         StorageDead(_2);
64-         StorageDead(_1);
65+         nop;
66+         nop;
67+         nop;
68          return;
69      }
70  }
71