================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits