rust/tests/mir-opt/deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.panic-abort.diff

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

101 lines
2.4 KiB
Diff
Raw Normal View History

2020-10-04 08:52:14 -05:00
- // MIR for `is_line_doc_comment_2` before DeduplicateBlocks
+ // MIR for `is_line_doc_comment_2` after DeduplicateBlocks
fn is_line_doc_comment_2(_1: &str) -> bool {
2023-06-06 08:47:00 -05:00
debug s => _1;
let mut _0: bool;
let mut _2: &[u8];
let mut _3: &str;
let mut _4: usize;
let mut _5: usize;
let mut _6: bool;
let mut _7: usize;
let mut _8: usize;
let mut _9: bool;
2020-10-04 08:52:14 -05:00
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
StorageLive(_3);
_3 = &(*_1);
_2 = core::str::<impl str>::as_bytes(move _3) -> [return: bb1, unwind unreachable];
2020-10-04 08:52:14 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageDead(_3);
_4 = Len((*_2));
_5 = const 4_usize;
_6 = Ge(move _4, move _5);
switchInt(move _6) -> [0: bb2, otherwise: bb3];
2020-10-04 08:52:14 -05:00
}
bb2: {
_7 = Len((*_2));
_8 = const 3_usize;
_9 = Ge(move _7, move _8);
- switchInt(move _9) -> [0: bb7, otherwise: bb8];
+ switchInt(move _9) -> [0: bb11, otherwise: bb7];
2020-10-04 08:52:14 -05:00
}
bb3: {
switchInt(copy (*_2)[0 of 4]) -> [47: bb4, otherwise: bb2];
2020-10-04 08:52:14 -05:00
}
bb4: {
switchInt(copy (*_2)[1 of 4]) -> [47: bb5, otherwise: bb2];
2020-10-04 08:52:14 -05:00
}
bb5: {
switchInt(copy (*_2)[2 of 4]) -> [47: bb6, otherwise: bb2];
2020-10-04 08:52:14 -05:00
}
bb6: {
- switchInt(copy (*_2)[3 of 4]) -> [47: bb13, otherwise: bb2];
+ switchInt(copy (*_2)[3 of 4]) -> [47: bb11, otherwise: bb2];
2020-10-04 08:52:14 -05:00
}
bb7: {
- _0 = const false;
- goto -> bb14;
+ switchInt(copy (*_2)[0 of 3]) -> [47: bb8, otherwise: bb11];
2020-10-04 08:52:14 -05:00
}
bb8: {
- switchInt(copy (*_2)[0 of 3]) -> [47: bb9, otherwise: bb7];
+ switchInt(copy (*_2)[1 of 3]) -> [47: bb9, otherwise: bb11];
2020-10-04 08:52:14 -05:00
}
bb9: {
- switchInt(copy (*_2)[1 of 3]) -> [47: bb10, otherwise: bb7];
+ switchInt(copy (*_2)[2 of 3]) -> [47: bb10, 33: bb10, otherwise: bb11];
}
bb10: {
- switchInt(copy (*_2)[2 of 3]) -> [47: bb12, 33: bb11, otherwise: bb7];
2024-02-11 21:56:03 -06:00
- }
-
- bb11: {
_0 = const true;
2023-06-06 08:47:00 -05:00
- goto -> bb14;
+ goto -> bb12;
2020-10-04 08:52:14 -05:00
}
2023-06-06 08:47:00 -05:00
- bb12: {
- _0 = const true;
- goto -> bb14;
- }
-
- bb13: {
2024-02-11 21:56:03 -06:00
+ bb11: {
_0 = const false;
2023-06-06 08:47:00 -05:00
- goto -> bb14;
+ goto -> bb12;
2020-10-04 08:52:14 -05:00
}
- bb14: {
+ bb12: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
return;
2020-10-04 08:52:14 -05:00
}
}