OSDN Git Service

[asan] added a flag -mllvm asan-short-64bit-mapping-offset=1 (0 by default)
authorKostya Serebryany <kcc@google.com>
Mon, 11 Feb 2013 14:36:01 +0000 (14:36 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 11 Feb 2013 14:36:01 +0000 (14:36 +0000)
commit117de489a0d5f4ff280fb173fe45bd5ce8514d93
treedaa8f6c2be2b2c81e27db4e246dec936a37c8cdf
parent716d26b2ce310e852a78b25ec94db031378133bb
[asan] added a flag -mllvm asan-short-64bit-mapping-offset=1 (0 by default)
This flag makes asan use a small (<2G) offset for 64-bit asan shadow mapping.
On x86_64 this saves us a register, thus achieving ~2/3 of the
zero-base-offset's benefits in both performance and code size.

Thanks Jakub Jelinek for the idea.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174886 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp