summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/gvn.indirect_static.GVN.panic-abort.diff
blob: f853942bbb66468f9a389ea32fee08d7adbd728f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- // MIR for `indirect_static` before GVN
+ // MIR for `indirect_static` after GVN
  
  fn indirect_static() -> () {
      let mut _0: ();
      let mut _1: &std::option::Option<u8>;
      let mut _2: u8;
  
      bb0: {
          _1 = const {ALLOC0: &Option<u8>};
          _2 = (((*_1) as variant#1).0: u8);
          return;
      }
  }
  
  ALLOC0 (static: A, size: 2, align: 1) {
      00 __                                           │ .░
  }