[ASan][MSan] Remove EmptyAsm and set the CallInst to nomerge to avoid from merging.
authorZequan Wu <zequanwu@google.com>
Mon, 22 Jun 2020 18:43:52 +0000 (11:43 -0700)
committerZequan Wu <zequanwu@google.com>
Tue, 23 Jun 2020 21:22:53 +0000 (14:22 -0700)
commit6a822e20ce700f2f98e80c6ce8dda026099c39b7
treea9b47b8ad17e8d1477e0cb81b4157c6f6d38c32f
parentbe494adb30ec76e1b6738b8bfc22040bfc31ce98
[ASan][MSan] Remove EmptyAsm and set the CallInst to nomerge to avoid from merging.

Summary: `nomerge` attribute was added at D78659. So, we can remove the EmptyAsm workaround in ASan the MSan and use this attribute.

Reviewers: vitalybuka

Reviewed By: vitalybuka

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82322
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
llvm/test/Instrumentation/MemorySanitizer/msan_basic.ll
llvm/test/Instrumentation/SanitizerCoverage/coverage-dbg.ll
llvm/test/Instrumentation/SanitizerCoverage/coverage.ll
llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll
llvm/test/Instrumentation/SanitizerCoverage/trace-pc-guard-comdat.ll
llvm/test/Instrumentation/SanitizerCoverage/trace-pc-guard-nocomdat.ll