[hwasan] Use stack safety analysis.
authorFlorian Mayer <fmayer@google.com>
Fri, 16 Jul 2021 08:48:08 +0000 (09:48 +0100)
committerFlorian Mayer <fmayer@google.com>
Mon, 19 Jul 2021 10:54:44 +0000 (11:54 +0100)
commit12268fe14a1a65d4b62f0b6e5beab46ba8501ae7
treeecc641e17bbc6f3e5f0b9cb835c07b9e8b5e47ca
parent754b1cd71347b2c7f95ce189b7ad52bb233b2ee8
[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-asm.c [new file with mode: 0644]
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]