summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dead-store-elimination/cycle.cycle.DeadStoreElimination.panic-abort.diff
blob: 6221d478041a2554ded3db476e49f70de28d6514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
- // MIR for `cycle` before DeadStoreElimination
+ // MIR for `cycle` after DeadStoreElimination
  
  fn cycle(_1: i32, _2: i32, _3: i32) -> () {
      debug x => _1;
      debug y => _2;
      debug z => _3;
      let mut _0: ();
-     let mut _4: ();
-     let mut _5: bool;
-     let _6: i32;
-     let mut _7: i32;
-     let mut _8: i32;
-     let mut _9: i32;
-     let mut _10: !;
-     let _11: ();
-     let mut _12: !;
+     let mut _4: bool;
+     let _5: i32;
      scope 1 {
-         debug temp => _6;
+         debug temp => _5;
      }
  
      bb0: {
          goto -> bb1;
      }
  
      bb1: {
-         StorageLive(_5);
-         _5 = cond() -> [return: bb2, unwind unreachable];
+         StorageLive(_4);
+         _4 = cond() -> [return: bb2, unwind unreachable];
      }
  
      bb2: {
-         switchInt(move _5) -> [0: bb4, otherwise: bb3];
+         switchInt(move _4) -> [0: bb4, otherwise: bb3];
      }
  
      bb3: {
-         StorageLive(_6);
-         _6 = _3;
-         StorageLive(_7);
-         _7 = _2;
-         _3 = move _7;
-         StorageDead(_7);
-         StorageLive(_8);
-         _8 = _1;
-         _2 = move _8;
-         StorageDead(_8);
-         StorageLive(_9);
-         _9 = _6;
-         _1 = move _9;
-         StorageDead(_9);
-         _4 = const ();
-         StorageDead(_6);
+         StorageLive(_5);
          StorageDead(_5);
+         StorageDead(_4);
          goto -> bb1;
      }
  
      bb4: {
-         StorageLive(_11);
          _0 = const ();
-         StorageDead(_11);
-         StorageDead(_5);
+         StorageDead(_4);
          return;
      }
  }