fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
638 B33 linesraw
1- // MIR for `main` before SimplifyConstCondition-after-const-prop
2+ // MIR for `main` after SimplifyConstCondition-after-const-prop
3  
4  fn main() -> () {
5      let mut _0: ();
6      let mut _1: bool;
7      let _2: ();
8  
9      bb0: {
10          StorageLive(_1);
11          _1 = const false;
12-         switchInt(const false) -> [0: bb3, otherwise: bb1];
13+         goto -> bb3;
14      }
15  
16      bb1: {
17          _2 = noop() -> [return: bb2, unwind unreachable];
18      }
19  
20      bb2: {
21          goto -> bb4;
22      }
23  
24      bb3: {
25          goto -> bb4;
26      }
27  
28      bb4: {
29          StorageDead(_1);
30          return;
31      }
32  }
33