[hwasan] Do not instrument accesses to uninteresting allocas.
authorFlorian Mayer <fmayer@google.com>
Thu, 9 Sep 2021 09:09:26 +0000 (10:09 +0100)
committerFlorian Mayer <fmayer@google.com>
Fri, 10 Sep 2021 18:28:28 +0000 (19:28 +0100)
commit09391e7e507f88b0873c34af621fc937c5f341fd
tree02fe29c355210c806da8580fb7187a1bda064d48
parent8fdd821aef366c7d37407993dc5debec296cdc2b
[hwasan] Do not instrument accesses to uninteresting allocas.

This leads to a statistically significant improvement when using -hwasan-instrument-stack=0: https://bit.ly/3AZUIKI.
When enabling stack instrumentation, the data appears gets better but not statistically significantly so. This is consistent
with the very moderate improvements I have seen for stack safety otherwise, so I expect it to improve when the underlying
issue of that is resolved.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D108457
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/test/Instrumentation/HWAddressSanitizer/memaccess-clobber.ll
llvm/test/Instrumentation/HWAddressSanitizer/stack-safety-analysis.ll