[llvm-commits] [compiler-rt] r172522 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Dmitry Vyukov
dvyukov at google.com
Tue Jan 15 01:03:20 PST 2013
Author: dvyukov
Date: Tue Jan 15 03:03:20 2013
New Revision: 172522
URL: http://llvm.org/viewvc/llvm-project?rev=172522&view=rev
Log:
asan: correct non-temporal prefetch for memory allocator
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=172522&r1=172521&r2=172522&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Jan 15 03:03:20 2013
@@ -52,7 +52,7 @@
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
# define UNUSED __attribute__((unused))
# define USED __attribute__((used))
-# define PREFETCH(x) __builtin_prefetch(x)
+# define PREFETCH(x) __asm__("prefetchnta (%0)" : : "r" (x))
#endif // _MSC_VER
#if defined(_WIN32)
More information about the llvm-commits
mailing list