about summary refs log tree commit diff
path: root/tests/mir-opt/gvn.non_freeze.GVN.panic-unwind.diff
blob: 988eee07cc98f3e999b7d09f7c1f136e393709e1 (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
- // MIR for `non_freeze` before GVN
+ // MIR for `non_freeze` after GVN
  
  fn non_freeze(_1: T) -> () {
      let mut _0: ();
      let mut _2: T;
      let mut _3: &T;
  
      bb0: {
          _2 = copy _1;
          _3 = &_1;
          _0 = opaque::<&T>(copy _3) -> [return: bb1, unwind continue];
      }
  
      bb1: {
          _0 = opaque::<T>(copy _2) -> [return: bb2, unwind continue];
      }
  
      bb2: {
          _0 = opaque::<T>(copy (*_3)) -> [return: bb3, unwind continue];
      }
  
      bb3: {
          return;
      }
  }