Erik Desjardins
f4426c189f
use [N x i8] for alloca types
2024-04-11 21:42:35 -04:00
Scott McMurray
7d537106a1
Let codegen decide when to mem::swap
with immediates
...
Making `libcore` decide this is silly; the backend has so much better information about when it's a good idea.
So introduce a new `typed_swap` intrinsic with a fallback body, but replace that implementation for immediates and scalar pairs.
2024-03-17 11:59:18 -07:00
Ben Kimock
2f3c0b9859
Ignore less tests in debug builds
2024-02-23 18:04:01 -05:00
许杰友 Jieyou Xu (Joe)
6e48b96692
[AUTO_GENERATED] Migrate compiletest to use ui_test
-style //@
directives
2024-02-22 16:04:04 +00:00
AngelicosPhosphoros
60208a0517
Tweak the threshold for chunked swapping
...
Thanks to 98892 for the tests I brought in here, as it demonstrated that 3×usize is currently suboptimal.
2024-01-19 23:00:34 -08:00
Scott McMurray
84e305dd93
Stop emitting non-power-of-two vectors in basic LLVM codegen
2023-08-25 20:06:57 -07:00
Scott McMurray
e1b020df9f
Use load
-store
instead of memcpy
for short integer arrays
2023-06-04 00:51:49 -07:00
Scott McMurray
cce0b52e7b
Add a codegen test for manually swapping a small Copy
type
...
To confirm we're not just helping `mem::swap`
2023-06-04 00:50:55 -07:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00