mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
`rep movsb` isn't usually a great idea here. This commit makes the logic which tentatively existed in `genInlineMemcpy` apply in more cases, and in particular applies it to the "new" backend logic. Put simply, all copies of 128 bytes or fewer will now attempt this path first, where---provided there is an SSE register and/or a general-purpose register available---we will lower the operation using a sequence of 32, 16, 8, 4, 2, and 1 byte copy operations. The feedback I got on this diff was "Push it to master and if it miscomps I'll revert it" so don't blame me when it explodes |
History
|
|
|---|---|---|
| .. | ||
| aarch64 | ||
| arm | ||
| c | ||
| llvm | ||
| mips | ||
| riscv64 | ||
| sparc64 | ||
| spirv | ||
| wasm | ||
| x86_64 | ||
| aarch64.zig | ||
| c.zig | ||
| llvm.zig | ||