rust/tests/mir-opt/building/match/simple_match.match_enum.built.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
795 B
Rust
Raw Normal View History

2024-06-27 04:24:05 -05:00
// MIR for `match_enum` after built
fn match_enum(_1: E1) -> bool {
debug x => _1;
let mut _0: bool;
let mut _2: isize;
bb0: {
PlaceMention(_1);
_2 = discriminant(_1);
switchInt(move _2) -> [0: bb2, 1: bb4, 2: bb6, otherwise: bb1];
2024-06-27 04:24:05 -05:00
}
bb1: {
FakeRead(ForMatchedPlace(None), _1);
unreachable;
}
bb2: {
goto -> bb8;
2024-06-27 04:24:05 -05:00
}
bb3: {
goto -> bb1;
2024-06-27 04:24:05 -05:00
}
bb4: {
goto -> bb8;
2024-06-27 04:24:05 -05:00
}
bb5: {
goto -> bb1;
2024-06-27 04:24:05 -05:00
}
bb6: {
_0 = const false;
goto -> bb10;
2024-06-27 04:24:05 -05:00
}
bb7: {
goto -> bb1;
2024-06-27 04:24:05 -05:00
}
bb8: {
falseEdge -> [real: bb9, imaginary: bb6];
2024-06-27 04:24:05 -05:00
}
bb9: {
_0 = const true;
goto -> bb10;
}
bb10: {
2024-06-27 04:24:05 -05:00
return;
}
}