[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

Florian Mayer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 17 16:32:35 PDT 2024


================
@@ -219,6 +219,32 @@ static void StopStackDepotBackgroundThread() {
 static void StopStackDepotBackgroundThread() {}
 #endif
 
+void MemCpyAccessible(void *dest, const void *src, uptr n) {
+  if (TryMemCpy(dest, src, n))
----------------
fmayer wrote:

I am not fully sure about this optimization. In the case where there are holes this makes it more expensive. Does the caller generally know that?

https://github.com/llvm/llvm-project/pull/112794


More information about the llvm-branch-commits mailing list