about summary refs log tree commit diff
path: root/tests/mir-opt/instsimplify/combine_transmutes.keep_transparent_transmute.InstSimplify-after-simplifycfg.diff
blob: 66a29629591ad3ac434c0091f6031862e4b22dbd (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
- // MIR for `keep_transparent_transmute` before InstSimplify-after-simplifycfg
+ // MIR for `keep_transparent_transmute` after InstSimplify-after-simplifycfg
  
  fn keep_transparent_transmute() -> () {
      let mut _0: ();
      let _1: i16;
      let mut _3: std::num::Wrapping<i16>;
      scope 1 {
          debug _a => _1;
          let _2: i16;
          scope 2 {
              debug _a => _2;
          }
      }
  
      bb0: {
          StorageLive(_1);
          _1 = const keep_transparent_transmute::{constant#0} as i16 (Transmute);
          StorageLive(_2);
          StorageLive(_3);
          _3 = Wrapping::<i16>(const 0_i16);
          _2 = move _3 as i16 (Transmute);
          StorageDead(_3);
          _0 = const ();
          StorageDead(_2);
          StorageDead(_1);
          return;
      }
  }