2024-01-06 16:17:16 -06:00
|
|
|
- // MIR for `f` before JumpThreading
|
|
|
|
+ // MIR for `f` after JumpThreading
|
|
|
|
|
|
|
|
fn f() -> usize {
|
|
|
|
let mut _0: usize;
|
|
|
|
let mut _1: isize;
|
|
|
|
let mut _2: E<char>;
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
_2 = E::<char>::A;
|
|
|
|
discriminant(_2) = 1;
|
|
|
|
_1 = discriminant(_2);
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy _1) -> [0: bb1, otherwise: bb2];
|
2024-01-06 16:17:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
_0 = const 0_usize;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
|
|
|
_0 = const 1_usize;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|