1 - // MIR for `dont_remove_comparison` before SimplifyComparisonIntegral
2 + // MIR for `dont_remove_comparison` after SimplifyComparisonIntegral
4 fn dont_remove_comparison(_1: i8) -> i32 {
5 debug a => _1; // in scope 0 at $DIR/if_condition_int.rs:+0:27: +0:28
6 let mut _0: i32; // return place in scope 0 at $DIR/if_condition_int.rs:+0:37: +0:40
7 let _2: bool; // in scope 0 at $DIR/if_condition_int.rs:+1:9: +1:10
8 let mut _3: i8; // in scope 0 at $DIR/if_condition_int.rs:+1:13: +1:14
9 let mut _4: i32; // in scope 0 at $DIR/if_condition_int.rs:+3:23: +3:31
10 let mut _5: bool; // in scope 0 at $DIR/if_condition_int.rs:+3:23: +3:24
11 let mut _6: i32; // in scope 0 at $DIR/if_condition_int.rs:+4:23: +4:31
12 let mut _7: bool; // in scope 0 at $DIR/if_condition_int.rs:+4:23: +4:24
14 debug b => _2; // in scope 1 at $DIR/if_condition_int.rs:+1:9: +1:10
18 StorageLive(_2); // scope 0 at $DIR/if_condition_int.rs:+1:9: +1:10
19 StorageLive(_3); // scope 0 at $DIR/if_condition_int.rs:+1:13: +1:14
20 _3 = _1; // scope 0 at $DIR/if_condition_int.rs:+1:13: +1:14
21 - _2 = Eq(move _3, const 17_i8); // scope 0 at $DIR/if_condition_int.rs:+1:13: +1:20
22 - StorageDead(_3); // scope 0 at $DIR/if_condition_int.rs:+1:19: +1:20
23 - switchInt(_2) -> [0: bb2, otherwise: bb1]; // scope 1 at $DIR/if_condition_int.rs:+2:5: +2:12
24 + _2 = Eq(_3, const 17_i8); // scope 0 at $DIR/if_condition_int.rs:+1:13: +1:20
25 + nop; // scope 0 at $DIR/if_condition_int.rs:+1:19: +1:20
26 + switchInt(move _3) -> [17: bb1, otherwise: bb2]; // scope 1 at $DIR/if_condition_int.rs:+2:5: +2:12
30 + StorageDead(_3); // scope 1 at $DIR/if_condition_int.rs:+2:5: +2:12
31 StorageLive(_6); // scope 1 at $DIR/if_condition_int.rs:+4:23: +4:31
32 StorageLive(_7); // scope 1 at $DIR/if_condition_int.rs:+4:23: +4:24
33 _7 = _2; // scope 1 at $DIR/if_condition_int.rs:+4:23: +4:24
34 _6 = move _7 as i32 (IntToInt); // scope 1 at $DIR/if_condition_int.rs:+4:23: +4:31
35 StorageDead(_7); // scope 1 at $DIR/if_condition_int.rs:+4:30: +4:31
36 _0 = Add(const 100_i32, move _6); // scope 1 at $DIR/if_condition_int.rs:+4:17: +4:31
37 StorageDead(_6); // scope 1 at $DIR/if_condition_int.rs:+4:30: +4:31
38 goto -> bb3; // scope 1 at $DIR/if_condition_int.rs:+4:30: +4:31
42 + StorageDead(_3); // scope 1 at $DIR/if_condition_int.rs:+2:5: +2:12
43 StorageLive(_4); // scope 1 at $DIR/if_condition_int.rs:+3:23: +3:31
44 StorageLive(_5); // scope 1 at $DIR/if_condition_int.rs:+3:23: +3:24
45 _5 = _2; // scope 1 at $DIR/if_condition_int.rs:+3:23: +3:24
46 _4 = move _5 as i32 (IntToInt); // scope 1 at $DIR/if_condition_int.rs:+3:23: +3:31
47 StorageDead(_5); // scope 1 at $DIR/if_condition_int.rs:+3:30: +3:31
48 _0 = Add(const 10_i32, move _4); // scope 1 at $DIR/if_condition_int.rs:+3:18: +3:31
49 StorageDead(_4); // scope 1 at $DIR/if_condition_int.rs:+3:30: +3:31
50 goto -> bb3; // scope 1 at $DIR/if_condition_int.rs:+3:30: +3:31
54 StorageDead(_2); // scope 0 at $DIR/if_condition_int.rs:+6:1: +6:2
55 return; // scope 0 at $DIR/if_condition_int.rs:+6:2: +6:2