Use store operation to poison allocas for lifetime analysis.
authorVitaly Buka <vitalybuka@google.com>
Mon, 29 Aug 2016 18:17:21 +0000 (18:17 +0000)
committerVitaly Buka <vitalybuka@google.com>
Mon, 29 Aug 2016 18:17:21 +0000 (18:17 +0000)
commit793913c7eb507b56bf9eb0f136d8c86b35520fe1
tree6b311ed0099b47e02bb833e9238becd0ef2257af
parent6496de48c7d58d32dd2cd7d9c2d368fa1362854a
Use store operation to poison allocas for lifetime analysis.

Summary:
Calling __asan_poison_stack_memory and __asan_unpoison_stack_memory for small
variables is too expensive.

Code is disabled by default and can be enabled by -asan-experimental-poisoning.

PR27453

Reviewers: eugenis

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D23947

llvm-svn: 279984
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/test/Instrumentation/AddressSanitizer/stack-poisoning-experimental-be.ll [new file with mode: 0644]
llvm/test/Instrumentation/AddressSanitizer/stack-poisoning-experimental.ll