rust/tests/mir-opt/const_prop/overwrite_with_const_with_p...

21 lines
392 B
Diff

- // MIR for `size_of` before GVN
+ // MIR for `size_of` after GVN
fn size_of() -> usize {
let mut _0: usize;
let mut _1: usize;
scope 1 {
debug a => _1;
}
bb0: {
StorageLive(_1);
_1 = const 0_usize;
_1 = const SizeOfConst::<T>::SIZE;
_0 = _1;
StorageDead(_1);
return;
}
}