fork/rust

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

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

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