summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/issue_78192.f.InstCombine.diff
blob: 116ca304c99391257b52c68ac25a323c3df533de (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
- // MIR for `f` before InstCombine
+ // MIR for `f` after InstCombine
  
  fn f(_1: &T) -> *const T {
      debug a => _1;                       // in scope 0 at $DIR/issue_78192.rs:+0:13: +0:14
      let mut _0: *const T;                // return place in scope 0 at $DIR/issue_78192.rs:+0:23: +0:31
      let _2: &*const T;                   // in scope 0 at $DIR/issue_78192.rs:+1:9: +1:10
      let _3: &*const T;                   // in scope 0 at $DIR/issue_78192.rs:+1:24: +1:40
      let _4: *const T;                    // in scope 0 at $DIR/issue_78192.rs:+1:25: +1:40
      scope 1 {
          debug b => _2;                   // in scope 1 at $DIR/issue_78192.rs:+1:9: +1:10
      }
  
      bb0: {
          StorageLive(_2);                 // scope 0 at $DIR/issue_78192.rs:+1:9: +1:10
          StorageLive(_3);                 // scope 0 at $DIR/issue_78192.rs:+1:24: +1:40
          StorageLive(_4);                 // scope 0 at $DIR/issue_78192.rs:+1:25: +1:40
          _4 = &raw const (*_1);           // scope 0 at $DIR/issue_78192.rs:+1:26: +1:27
          _3 = &_4;                        // scope 0 at $DIR/issue_78192.rs:+1:24: +1:40
-         _2 = &(*_3);                     // scope 0 at $DIR/issue_78192.rs:+1:24: +1:40
+         _2 = _3;                         // scope 0 at $DIR/issue_78192.rs:+1:24: +1:40
          StorageDead(_3);                 // scope 0 at $DIR/issue_78192.rs:+1:40: +1:41
          _0 = (*_2);                      // scope 1 at $DIR/issue_78192.rs:+2:5: +2:7
          StorageDead(_4);                 // scope 0 at $DIR/issue_78192.rs:+3:1: +3:2
          StorageDead(_2);                 // scope 0 at $DIR/issue_78192.rs:+3:1: +3:2
          return;                          // scope 0 at $DIR/issue_78192.rs:+3:2: +3:2
      }
  }