rust/tests/mir-opt/jump_threading.disappearing...

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

60 lines
996 B
Diff
Raw Normal View History

2023-01-17 06:12:36 +08: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 23:50:09 +08:00
let mut _2: bool;
2023-01-17 06:12:36 +08:00
let mut _3: bool;
bb0: {
2023-10-20 23:50:09 +08:00
_2 = const true;
2023-01-17 06:12:36 +08:00
_3 = const true;
switchInt(_1) -> [0: bb3, 1: bb3, 2: bb1, otherwise: bb2];
}
bb1: {
_3 = const false;
- goto -> bb4;
+ goto -> bb9;
}
bb2: {
unreachable;
}
bb3: {
2023-10-20 23:50:09 +08:00
_2 = const false;
2023-01-17 06:12:36 +08:00
goto -> bb4;
}
bb4: {
switchInt(_3) -> [0: bb5, otherwise: bb7];
}
bb5: {
2023-10-20 23:50:09 +08:00
switchInt(_2) -> [0: bb6, otherwise: bb8];
2023-01-17 06:12:36 +08:00
}
bb6: {
return;
}
bb7: {
2023-02-08 06:02:43 +08:00
- goto -> bb5;
+ goto -> bb10;
2023-01-17 06:12:36 +08:00
}
bb8: {
2023-02-08 06:02:43 +08:00
+ goto -> bb6;
2023-01-17 06:12:36 +08:00
+ }
+
+ bb9: {
+ goto -> bb5;
2023-02-08 06:02:43 +08:00
+ }
+
+ bb10: {
goto -> bb6;
2023-01-17 06:12:36 +08:00
}
}