about summary refs log tree commit diff
path: root/tests/mir-opt/gvn_overlapping.stable_projection.GVN.diff
blob: 0883545659113715d2e0543e6ace1beb29e3b37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- // MIR for `stable_projection` before GVN
+ // MIR for `stable_projection` after GVN
  
  fn stable_projection(_1: (Adt,)) -> () {
      let mut _0: ();
      let mut _2: *mut Adt;
      let mut _3: u32;
      let mut _4: &Adt;
  
      bb0: {
          _2 = &raw mut (_1.0: Adt);
          _4 = &(*_2);
          _3 = copy (((*_4) as variant#1).0: u32);
-         (_1.0: Adt) = Adt::Some(copy _3);
+         (_1.0: Adt) = copy (*_4);
          return;
      }
  }