about summary refs log tree commit diff
path: root/tests/mir-opt/debuginfo/simplifycfg.preserve_debuginfo_3.SimplifyCfg-final.diff
blob: 11372a262a76ec7630c337db246c30c8664854ac (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
34
35
36
37
- // MIR for `preserve_debuginfo_3` before SimplifyCfg-final
+ // MIR for `preserve_debuginfo_3` after SimplifyCfg-final
  
  fn preserve_debuginfo_3(_1: &Foo, _2: bool) -> i32 {
      debug foo_a => _3;
      debug foo_b => _4;
      debug foo_c => _5;
      let mut _0: i32;
      let mut _3: &i32;
      let mut _4: &i64;
      let mut _5: &i32;
  
      bb0: {
-         switchInt(copy _2) -> [1: bb1, otherwise: bb2];
+         switchInt(copy _2) -> [1: bb2, otherwise: bb1];
      }
  
      bb1: {
-         // DBG: _3 = &((*_1).0: i32);
-         goto -> bb3;
-     }
- 
-     bb2: {
          // DBG: _4 = &((*_1).1: i64);
          _0 = copy ((*_1).2: i32);
          return;
      }
  
-     bb3: {
+     bb2: {
+         // DBG: _3 = &((*_1).0: i32);
          // DBG: _5 = &((*_1).2: i32);
          _0 = copy ((*_1).0: i32);
          return;
      }
  }