rust/tests/mir-opt/building/simple_match.match_bool.built.after.mir

30 lines
1.1 KiB
Rust
Raw Normal View History

// MIR for `match_bool` after built
2020-04-02 16:09:01 -05:00
fn match_bool(_1: bool) -> usize {
2022-11-02 16:54:49 -05:00
debug x => _1; // in scope 0 at $DIR/simple_match.rs:+0:15: +0:16
let mut _0: usize; // return place in scope 0 at $DIR/simple_match.rs:+0:27: +0:32
2020-04-02 16:09:01 -05:00
bb0: {
2022-11-02 16:54:49 -05:00
FakeRead(ForMatchedPlace(None), _1); // scope 0 at $DIR/simple_match.rs:+1:11: +1:12
switchInt(_1) -> [0: bb2, otherwise: bb1]; // scope 0 at $DIR/simple_match.rs:+1:5: +1:12
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb1: {
2022-11-02 16:54:49 -05:00
falseEdge -> [real: bb3, imaginary: bb2]; // scope 0 at $DIR/simple_match.rs:+2:9: +2:13
2020-04-02 16:09:01 -05:00
}
bb2: {
2022-11-02 16:54:49 -05:00
_0 = const 20_usize; // scope 0 at $DIR/simple_match.rs:+3:14: +3:16
goto -> bb4; // scope 0 at $DIR/simple_match.rs:+3:14: +3:16
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb3: {
2022-11-02 16:54:49 -05:00
_0 = const 10_usize; // scope 0 at $DIR/simple_match.rs:+2:17: +2:19
goto -> bb4; // scope 0 at $DIR/simple_match.rs:+2:17: +2:19
}
2020-10-02 15:11:24 -05:00
bb4: {
2022-11-02 16:54:49 -05:00
return; // scope 0 at $DIR/simple_match.rs:+5:2: +5:2
2020-04-02 16:09:01 -05:00
}
}