[gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileN...
authorEnna1 <xumingjie.enna1@bytedance.com>
Thu, 25 May 2023 02:11:02 +0000 (10:11 +0800)
committerEnna1 <xumingjie.enna1@bytedance.com>
Thu, 25 May 2023 02:13:52 +0000 (10:13 +0800)
commit693a1b7024b81655760e209b73b3ef339e161d76
treed0553e8cb3389c8e18fedb930c1cdd68b7b159f2
parent514dddbeba643e32310c508a15d7b6ff42f2c461
[gcov] Add nosanitize metadata to memory access instructions inserted by emitProfileNotes()

This patch adds nosantize metadata to memory access instructions inserted by gcov emitProfileNotes(), making sanitizers skip these instructions when gcov and sanitizer are used together.

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D150460
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
llvm/test/Transforms/GCOVProfiling/nosanitize.ll [new file with mode: 0644]