0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src/codegen
mlugg 0c476191a4 x86_64: generate better constant memcpy code
`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 2025-09-27 18:30:52 -04:00
..
aarch64 Elf2: create a new linker from scratch 2025-09-21 14:09:14 -07:00
arm compiler: delete arm backend 2025-07-02 14:50:41 -07:00
c std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
llvm build system: replace fuzzing UI with build UI, add time report 2025-08-01 23:48:21 +01:00
mips compiler: change canonical path for backend ABI source files 2025-07-02 15:01:50 -07:00
riscv64 compiler: move self-hosted backends from src/arch to src/codegen 2025-09-26 02:02:07 +02:00
sparc64 compiler: move self-hosted backends from src/arch to src/codegen 2025-09-26 02:02:07 +02:00
spirv std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
wasm compiler: move self-hosted backends from src/arch to src/codegen 2025-09-26 02:02:07 +02:00
x86_64 x86_64: generate better constant memcpy code 2025-09-27 18:30:52 -04:00
aarch64.zig aarch64: implement var args 2025-07-27 06:59:38 -04:00
c.zig std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
llvm.zig compiler: move self-hosted backends from src/arch to src/codegen 2025-09-26 02:02:07 +02:00