aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-04-26 13:41:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-04-28 13:24:42 -0700
commit9295355985202c267b4326b5a6e2ad5158b48e5d (patch)
tree31fd1162358b568f9adb34f11cc3e8e2074c6987 /lib/std/math
parent51adbf472bcf9eacc0099e39778a6f9177fea023 (diff)
downloadzig-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