[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)
commitc5f44bc62de36161d6ed7dcbebc3fd2597f6f37a
treecdfb46d715ea4fa72536555d61f6080e81e942de
parentbe867971cb0e98d51a6c303bc75e9f0737ad1d95
[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.

llvm-svn: 174886
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp