Andrew Kelley
57ea6207d3
std.ArrayList: mark the appendNTimes methods inline
...
The previous commit introduced an optimization to the LLVM backend that
makes `@memset` lower more optimally when the element is comptime-known
and has a repeating byte pattern.
By making these functions inline, if the element parameter is
comptime-known at the callsite, it will be comptime-known in the
`@memset` call, causing more use of the LLVM `memset` intrinsic rather
than an inline for loop when using the LLVM backend.
This affects, for example, std.crypto.argon2, which calls
appendNTimesAssumeCapacity with a `[128]u64` as the element. This is now
lowered with a single `memset` call.
2023-04-28 13:24:43 -07:00
..
2023-02-18 19:17:21 -07:00
2023-04-23 21:06:21 +03:00
2023-04-25 11:23:40 -07:00
2023-04-23 21:06:21 +03:00
2023-04-25 11:23:40 -07:00
2023-02-18 19:17:21 -07:00
2023-03-25 14:09:00 +02:00
2023-04-27 11:01:02 +03:00
2023-04-25 11:23:41 -07:00
2023-04-25 11:23:41 -07:00
2023-04-26 00:02:55 -07:00
2023-01-29 15:07:06 -05:00
2023-04-26 00:52:17 +03:00
2023-04-25 11:23:40 -07:00
2023-04-25 11:23:40 -07:00
2023-04-12 12:06:19 -04:00
2023-04-24 12:23:22 +03:00
2023-04-27 11:10:38 +03:00
2023-04-21 16:36:10 -04:00
2023-04-18 18:37:15 -07:00
2022-11-29 23:30:38 -07:00
2023-04-27 08:24:32 -07:00
2022-12-13 13:14:20 +02:00
2022-08-22 13:55:00 +03:00
2023-04-25 11:23:41 -07:00
2023-04-25 11:23:40 -07:00
2023-04-28 13:24:43 -07:00
2023-02-18 19:17:21 -07:00
2023-04-21 23:08:48 -04:00
2023-03-23 22:52:15 +02:00
2023-04-23 21:06:21 +03:00
2023-03-17 17:50:25 +01:00
2023-04-22 13:09:15 +03:00
2023-04-15 10:33:08 -07:00
2023-04-26 20:56:21 -07:00
2023-03-15 10:48:13 -07:00
2023-03-25 03:20:50 +01:00
2023-02-18 19:17:21 -07:00
2023-02-22 00:11:20 +11:00
2023-04-22 13:55:30 +03:00
2023-04-21 19:52:33 +00:00
2023-01-29 15:07:06 -05:00
2023-04-26 20:56:21 -07:00
2023-04-20 15:17:07 -07:00
2023-04-15 23:23:29 -04:00
2023-04-23 13:50:24 +02:00
2023-04-18 19:51:18 -07:00
2023-04-25 11:23:40 -07:00
2023-04-23 13:16:42 -07:00
2023-04-25 10:37:49 -07:00
2023-04-25 11:23:41 -07:00
2023-04-21 23:08:48 -04:00
2023-04-22 14:09:44 +03:00
2023-04-26 14:02:55 -04:00
2023-01-11 15:39:48 -08:00
2023-03-25 21:32:55 -04:00
2023-04-26 00:52:17 +03:00
2022-12-27 15:13:14 +02:00
2022-09-11 23:18:43 -04:00
2023-01-05 02:31:29 -07:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-21 23:08:48 -04:00
2023-04-25 11:23:40 -07:00
2023-04-25 11:23:40 -07:00
2023-02-18 19:17:21 -07:00
2023-04-26 20:56:21 -07:00
2023-04-22 13:09:15 +03:00
2023-02-18 19:17:21 -07:00
2023-02-18 19:17:21 -07:00
2023-02-18 19:17:21 -07:00
2023-04-24 05:49:48 +03:00
2023-03-15 10:48:14 -07:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2022-12-10 12:33:17 +01:00
2022-12-09 21:57:17 +01:00
2023-03-20 17:45:12 +01:00
2023-03-21 15:12:13 +02:00
2023-01-29 15:04:13 -05:00
2023-04-14 15:25:42 +02:00
2023-03-17 17:50:25 +01:00
2023-04-23 20:39:28 +03:00
2023-04-13 02:47:16 -04:00
2023-02-18 19:17:21 -07:00
2023-04-21 23:08:48 -04:00
2022-11-02 23:20:19 +01:00
2023-04-12 12:06:19 -04:00
2023-04-23 21:06:21 +03:00
2022-11-19 19:32:45 -07:00
2023-03-18 20:13:30 +01:00
2023-03-15 10:48:13 -07:00