1 - // MIR for `foo` before MatchBranchSimplification
2 + // MIR for `foo` after MatchBranchSimplification
4 fn foo(_1: std::option::Option<()>) -> () {
5 debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:4:8: 4:11
6 let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:4:25: 4:25
7 let mut _2: bool; // in scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
8 let mut _3: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:5:22: 5:26
11 StorageLive(_2); // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
12 _3 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:5:22: 5:26
13 - switchInt(move _3) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:5:22: 5:26
14 + _2 = Eq(_3, const 0_isize); // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
17 + // + val: Value(Scalar(0x00000000))
19 + // + span: $DIR/matches_reduce_branches.rs:1:1: 1:1
20 + // + literal: Const { ty: isize, val: Value(Scalar(0x00000000)) }
21 + goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:5:22: 5:26
25 _2 = const false; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
28 // + val: Value(Scalar(0x00))
30 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
31 // + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
32 goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
36 _2 = const true; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
39 // + val: Value(Scalar(0x01))
41 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
42 // + literal: Const { ty: bool, val: Value(Scalar(0x01)) }
43 goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
47 switchInt(_2) -> [false: bb4, otherwise: bb5]; // scope 0 at $DIR/matches_reduce_branches.rs:5:5: 7:6
51 _0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:5:5: 7:6
54 // + val: Value(Scalar(<ZST>))
56 // + span: $DIR/matches_reduce_branches.rs:5:5: 7:6
57 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
58 goto -> bb5; // scope 0 at $DIR/matches_reduce_branches.rs:5:5: 7:6
62 StorageDead(_2); // scope 0 at $DIR/matches_reduce_branches.rs:8:1: 8:2
63 return; // scope 0 at $DIR/matches_reduce_branches.rs:8:2: 8:2