fork/rust

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

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

master
707 B36 linesraw
1- // MIR for `opt2` before InstSimplify
2+ // MIR for `opt2` after InstSimplify
3  
4  fn opt2(_1: bool) -> u32 {
5      debug x => _1;
6      let mut _0: u32;
7      let mut _2: bool;
8      let mut _3: bool;
9  
10      bb0: {
11          StorageLive(_2);
12          StorageLive(_3);
13          _3 = _1;
14-         _2 = Ne(const true, move _3);
15+         _2 = Not(move _3);
16          switchInt(move _2) -> [0: bb2, otherwise: bb1];
17      }
18  
19      bb1: {
20          StorageDead(_3);
21          _0 = const 0_u32;
22          goto -> bb3;
23      }
24  
25      bb2: {
26          StorageDead(_3);
27          _0 = const 1_u32;
28          goto -> bb3;
29      }
30  
31      bb3: {
32          StorageDead(_2);
33          return;
34      }
35  }
36