diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-26 13:41:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-28 13:24:42 -0700 |
| commit | 9295355985202c267b4326b5a6e2ad5158b48e5d (patch) | |
| tree | 31fd1162358b568f9adb34f11cc3e8e2074c6987 /lib/std/math | |
| parent | 51adbf472bcf9eacc0099e39778a6f9177fea023 (diff) | |
| download | zig-9295355985202c267b4326b5a6e2ad5158b48e5d.tar.gz zig-9295355985202c267b4326b5a6e2ad5158b48e5d.zip | |
LLVM backend: optimize memset with comptime-known element
When the element is comptime-known, we can check if it has a repeated
byte representation. In this case, `@memset` can be lowered with the
LLVM intrinsic rather than with a loop.
Diffstat (limited to 'lib/std/math')
0 files changed, 0 insertions, 0 deletions
