2024-06-22 02:29:24 -05:00
|
|
|
// MIR for `slice_iter_generic_is_empty` after PreCodegen
|
|
|
|
|
|
|
|
fn slice_iter_generic_is_empty(_1: &std::slice::Iter<'_, T>) -> bool {
|
|
|
|
debug it => _1;
|
|
|
|
let mut _0: bool;
|
|
|
|
scope 1 (inlined <std::slice::Iter<'_, T> as ExactSizeIterator>::is_empty) {
|
|
|
|
let mut _2: *const *const T;
|
|
|
|
let mut _3: *const std::ptr::NonNull<T>;
|
2024-06-22 15:45:14 -05:00
|
|
|
let mut _8: *const T;
|
2024-06-22 02:29:24 -05:00
|
|
|
scope 2 {
|
|
|
|
let _4: std::ptr::NonNull<T>;
|
2024-06-22 17:21:13 -05:00
|
|
|
let _9: usize;
|
2024-06-22 02:29:24 -05:00
|
|
|
scope 3 {
|
|
|
|
}
|
|
|
|
scope 4 {
|
|
|
|
scope 8 (inlined <NonNull<T> as PartialEq>::eq) {
|
|
|
|
let mut _5: std::ptr::NonNull<T>;
|
|
|
|
scope 9 (inlined NonNull::<T>::as_ptr) {
|
|
|
|
let mut _6: *const T;
|
|
|
|
}
|
|
|
|
scope 10 (inlined NonNull::<T>::as_ptr) {
|
2024-06-22 15:45:14 -05:00
|
|
|
let mut _7: *const T;
|
2024-06-22 02:29:24 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scope 5 (inlined std::ptr::const_ptr::<impl *const T>::addr) {
|
|
|
|
scope 6 (inlined std::ptr::const_ptr::<impl *const T>::cast::<()>) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scope 7 (inlined std::ptr::const_ptr::<impl *const *const T>::cast::<NonNull<T>>) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2024-06-22 17:21:13 -05:00
|
|
|
StorageLive(_9);
|
|
|
|
StorageLive(_8);
|
2024-06-22 02:29:24 -05:00
|
|
|
StorageLive(_4);
|
|
|
|
switchInt(const <T as std::mem::SizedTypeProperties>::IS_ZST) -> [0: bb1, otherwise: bb2];
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
StorageLive(_3);
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = &raw const ((*_1).1: *const T);
|
|
|
|
_3 = copy _2 as *const std::ptr::NonNull<T> (PtrToPtr);
|
|
|
|
StorageDead(_2);
|
|
|
|
_4 = copy (*_3);
|
|
|
|
StorageDead(_3);
|
2024-06-22 15:45:14 -05:00
|
|
|
StorageLive(_6);
|
2024-06-22 02:29:24 -05:00
|
|
|
StorageLive(_7);
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = copy ((*_1).0: std::ptr::NonNull<T>);
|
|
|
|
_6 = copy (_5.0: *const T);
|
|
|
|
StorageDead(_5);
|
2024-06-22 15:45:14 -05:00
|
|
|
_7 = copy (_4.0: *const T);
|
|
|
|
_0 = Eq(copy _6, copy _7);
|
2024-06-22 02:29:24 -05:00
|
|
|
StorageDead(_7);
|
2024-06-22 15:45:14 -05:00
|
|
|
StorageDead(_6);
|
2024-06-22 02:29:24 -05:00
|
|
|
goto -> bb3;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-06-22 15:45:14 -05:00
|
|
|
_8 = copy ((*_1).1: *const T);
|
2024-06-22 17:21:13 -05:00
|
|
|
_9 = copy _8 as usize (Transmute);
|
|
|
|
_0 = Eq(copy _9, const 0_usize);
|
2024-06-22 02:29:24 -05:00
|
|
|
goto -> bb3;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
|
|
|
StorageDead(_4);
|
2024-06-22 17:21:13 -05:00
|
|
|
StorageDead(_8);
|
|
|
|
StorageDead(_9);
|
2024-06-22 02:29:24 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|