about summary refs log tree commit diff
path: root/tests/codegen/mem-replace-direct-memcpy.rs
AgeCommit message (Collapse)AuthorLines
2023-04-30Codegen fewer instructions in `mem::replace`Scott McMurray-33/+0
2023-03-15Split the mem-replace codegen testScott McMurray-22/+0
Apparently in CI it's getting generated in the opposite order, one function per file will make the test pass either way.
2023-03-11`MaybeUninit::assume_init_read` should have `noundef` load metadataScott McMurray-5/+36
I was looking into `array::IntoIter` optimization, and noticed that it wasn't annotating the loads with `noundef` for simple things like `array::IntoIter<i32, N>`. Turned out to be a more general problem as `MaybeUninit::assume_init_read` isn't marking the load as initialized (<https://rust.godbolt.org/z/Mxd8TPTnv>), which is unfortunate since that's basically its reason to exist. This PR lowers `ptr::read(p)` to `copy *p` in MIR, which fortuitiously also improves the IR we give to LLVM for things like `mem::replace`.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+24