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:3:8: 3:11
6 let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:3:25: 3: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:4:22: 4: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:4:22: 4:26
13 - switchInt(move _3) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:4:22: 4:26
14 + goto -> bb2; // scope 0 at $DIR/matches_reduce_branches.rs:4:22: 4:26
18 _2 = const false; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21 // + val: Value(Scalar(0x00))
23 // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
24 // + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
25 goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
29 - _2 = const true; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
30 + _2 = Eq(move _3, const 0_isize); // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
33 - // + val: Value(Scalar(0x01))
35 + // + val: Value(Scalar(0x0000000000000000))
37 - // + span: $SRC_DIR/core/src/macros/mod.rs:LL:COL
38 - // + literal: Const { ty: bool, val: Value(Scalar(0x01)) }
39 + // + span: $DIR/matches_reduce_branches.rs:1:1: 1:1
40 + // + literal: Const { ty: isize, val: Value(Scalar(0x0000000000000000)) }
41 goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
45 switchInt(_2) -> [false: bb4, otherwise: bb5]; // scope 0 at $DIR/matches_reduce_branches.rs:4:5: 6:6
49 _0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:4:5: 6:6
52 // + val: Value(Scalar(<ZST>))
54 // + span: $DIR/matches_reduce_branches.rs:4:5: 6:6
55 // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
56 goto -> bb5; // scope 0 at $DIR/matches_reduce_branches.rs:4:5: 6:6
60 StorageDead(_2); // scope 0 at $DIR/matches_reduce_branches.rs:7:1: 7:2
61 return; // scope 0 at $DIR/matches_reduce_branches.rs:7:2: 7:2