summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/instsimplify/intrinsic_asserts.generic.InstSimplify.diff
blob: 2ecacb5e39f4730e4e1b831b42b5b8fb9ff17620 (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
- // MIR for `generic` before InstSimplify
+ // MIR for `generic` after InstSimplify
  
  fn generic() -> () {
      let mut _0: ();
      let _1: ();
      let _2: ();
      let _3: ();
  
      bb0: {
          StorageLive(_1);
          _1 = assert_inhabited::<T>() -> [return: bb1, unwind unreachable];
      }
  
      bb1: {
          StorageDead(_1);
          StorageLive(_2);
          _2 = assert_zero_valid::<T>() -> [return: bb2, unwind unreachable];
      }
  
      bb2: {
          StorageDead(_2);
          StorageLive(_3);
          _3 = assert_mem_uninitialized_valid::<T>() -> [return: bb3, unwind unreachable];
      }
  
      bb3: {
          StorageDead(_3);
          _0 = const ();
          return;
      }
  }