OSDN Git Service

[asan] Do not instrument accesses to profiling globals
authorVedant Kumar <vsk@apple.com>
Wed, 22 Jun 2016 17:30:58 +0000 (17:30 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 22 Jun 2016 17:30:58 +0000 (17:30 +0000)
commitf317b6e2b1865092d808718af7c1c8671624d7dd
tree67ec0e575265d2760da81f4aa2b03dbda61f252f
parentfefbc8fc7ea3645e80d8e6ecbc2d28350723475f
[asan] Do not instrument accesses to profiling globals

It's only useful to asan-itize profiling globals while debugging llvm's
profiling instrumentation passes. Enabling asan along with instrprof or
gcov instrumentation shouldn't incur extra overhead.

This patch is in the same spirit as r264805 and r273202, which disabled
tsan instrumentation of instrprof/gcov globals.

Differential Revision: http://reviews.llvm.org/D21541

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273444 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/do-not-instrument-profiling-globals.ll [new file with mode: 0644]