File: jump_threading.disappearing_bb.JumpThreading.panic-abort.diff

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (59 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (6)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
- // MIR for `disappearing_bb` before JumpThreading
+ // MIR for `disappearing_bb` after JumpThreading
  
  fn disappearing_bb(_1: u8) -> u8 {
      let mut _0: u8;
      let mut _2: bool;
      let mut _3: bool;
  
      bb0: {
          _2 = const true;
          _3 = const true;
          switchInt(copy _1) -> [0: bb3, 1: bb3, 2: bb1, otherwise: bb2];
      }
  
      bb1: {
          _3 = const false;
-         goto -> bb4;
+         goto -> bb9;
      }
  
      bb2: {
          unreachable;
      }
  
      bb3: {
          _2 = const false;
          goto -> bb4;
      }
  
      bb4: {
          switchInt(copy _3) -> [0: bb5, otherwise: bb7];
      }
  
      bb5: {
          switchInt(copy _2) -> [0: bb6, otherwise: bb8];
      }
  
      bb6: {
          return;
      }
  
      bb7: {
-         goto -> bb5;
+         goto -> bb10;
      }
  
      bb8: {
+         goto -> bb6;
+     }
+ 
+     bb9: {
+         goto -> bb5;
+     }
+ 
+     bb10: {
          goto -> bb6;
      }
  }