| - // MIR for `match_eq_bool` before MatchBranchSimplification |
| + // MIR for `match_eq_bool` after MatchBranchSimplification |
| |
| fn match_eq_bool(_1: i32) -> bool { |
| debug i => _1; |
| let mut _0: bool; |
| let _2: bool; |
| let _3: (); |
| + let mut _4: i32; |
| scope 1 { |
| debug a => _2; |
| } |
| |
| bb0: { |
| StorageLive(_2); |
| StorageLive(_3); |
| - switchInt(copy _1) -> [7: bb3, 8: bb2, otherwise: bb1]; |
| - } |
| - |
| - bb1: { |
| - _2 = const true; |
| + StorageLive(_4); |
| + _4 = copy _1; |
| + _2 = Ne(copy _4, const 7_i32); |
| _3 = (); |
| - goto -> bb4; |
| - } |
| - |
| - bb2: { |
| - _2 = const true; |
| - _3 = (); |
| - goto -> bb4; |
| - } |
| - |
| - bb3: { |
| - _2 = const false; |
| - _3 = (); |
| - goto -> bb4; |
| - } |
| - |
| - bb4: { |
| + StorageDead(_4); |
| StorageDead(_3); |
| _0 = copy _2; |
| StorageDead(_2); |
| return; |
| } |
| } |
| |