Scott McMurray
63dcac8423
skip tests/codegen/swap-small-types
when debug assertions are on
...
In `swap_nonoverlapping_short` there's a new `debug_assert!`, and if that's enabled then the `alloca`s don't optimize out.
2025-04-09 10:44:49 -07:00
Scott McMurray
50d0ce1b42
Ensure swap_nonoverlapping
is really always untyped
2025-04-09 09:09:37 -07:00
Jubilee Young
3c0c9b6770
tests/codegen: use -Copt-level=3 instead of -O
2025-02-11 13:41:35 -08:00
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