rust/tests/mir-opt/jump_threading.disappearing_bb.JumpThreading.panic-abort.diff

60 lines
1011 B
Diff
Raw Normal View History

2023-01-16 16:12:36 -06:00
- // MIR for `disappearing_bb` before JumpThreading
+ // MIR for `disappearing_bb` after JumpThreading
fn disappearing_bb(_1: u8) -> u8 {
let mut _0: u8;
2023-10-20 10:50:09 -05:00
let mut _2: bool;
2023-01-16 16:12:36 -06:00
let mut _3: bool;
bb0: {
2023-10-20 10:50:09 -05:00
_2 = const true;
2023-01-16 16:12:36 -06:00
_3 = const true;
2024-08-18 16:26:34 -05:00
switchInt(copy _1) -> [0: bb3, 1: bb3, 2: bb1, otherwise: bb2];
2023-01-16 16:12:36 -06:00
}
bb1: {
_3 = const false;
- goto -> bb4;
+ goto -> bb9;
}
bb2: {
unreachable;
}
bb3: {
2023-10-20 10:50:09 -05:00
_2 = const false;
2023-01-16 16:12:36 -06:00
goto -> bb4;
}
bb4: {
2024-08-18 16:26:34 -05:00
switchInt(copy _3) -> [0: bb5, otherwise: bb7];
2023-01-16 16:12:36 -06:00
}
bb5: {
2024-08-18 16:26:34 -05:00
switchInt(copy _2) -> [0: bb6, otherwise: bb8];
2023-01-16 16:12:36 -06:00
}
bb6: {
return;
}
bb7: {
2023-02-07 16:02:43 -06:00
- goto -> bb5;
+ goto -> bb10;
2023-01-16 16:12:36 -06:00
}
bb8: {
2023-02-07 16:02:43 -06:00
+ goto -> bb6;
2023-01-16 16:12:36 -06:00
+ }
+
+ bb9: {
+ goto -> bb5;
2023-02-07 16:02:43 -06:00
+ }
+
+ bb10: {
goto -> bb6;
2023-01-16 16:12:36 -06:00
}
}