[hwasan] Use stack safety analysis.
authorFlorian Mayer <fmayer@google.com>
Mon, 19 Jul 2021 11:52:17 +0000 (12:52 +0100)
committerFlorian Mayer <fmayer@google.com>
Tue, 20 Jul 2021 09:06:35 +0000 (10:06 +0100)
commite9c63ed10b3bdf6eb3fa76d1a3eb403d6fc6a118
tree749e0ad244b2c1fdb2de52203f74e0f4d23f210f
parenteb1a5120b8d52ac3c33f404cf4c428c2de5f8a13
[hwasan] Use stack safety analysis.

This avoids unnecessary instrumentation.

Reviewed By: eugenis, vitalybuka

Differential Revision: https://reviews.llvm.org/D105703
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/hwasan-stack-safety-analysis.c [new file with mode: 0644]
llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/test/Instrumentation/HWAddressSanitizer/stack-safety-analysis.ll [new file with mode: 0644]