llvm-project/llvm/test/Instrumentation/MemorySanitizer
Gui Andrade b0ffa8befe [MSAN] Pass Origin by parameter to __msan_warning functions
Summary:
Normally, the Origin is passed over TLS, which seems like it introduces unnecessary overhead. It's in the (extremely) cold path though, so the only overhead is in code size.

But with eager-checks, calls to __msan_warning functions are extremely common, so this becomes a useful optimization.

This can save ~5% code size.

Reviewers: eugenis, vitalybuka

Reviewed By: eugenis, vitalybuka

Subscribers: hiraditya, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D81700
2020-06-15 17:49:18 -07:00
..
AArch64
Mips Reapply [IRBuilder] Always respect inserter/folder 2020-02-19 20:51:38 +01:00
PowerPC Reapply [IRBuilder] Always respect inserter/folder 2020-02-19 20:51:38 +01:00
SystemZ [llvm] Fix yet more missing FileCheck colons 2020-04-13 10:49:19 -06:00
X86 Reapply [IRBuilder] Always respect inserter/folder 2020-02-19 20:51:38 +01:00
alloca.ll
array_types.ll
atomics.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
attributes.ll [msan] Remove more attributes from sanitized functions. 2019-10-28 17:57:28 -07:00
bmi.ll
byval-alignment.ll Reapply [IRBuilder] Always respect inserter/folder 2020-02-19 20:51:38 +01:00
check-constant-shadow.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
check_access_address.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
clmul.ll [msan] Instrument x86.pclmulqdq* intrinsics. 2020-01-24 14:31:06 -08:00
csr.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
instrumentation-with-call-threshold.ll
manual-shadow.ll
masked-store-load.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
missing_origin.ll
msan_asm_conservative.ll
msan_basic.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
msan_kernel_basic.ll StoreInst should store Align, not MaybeAlign 2020-05-15 12:26:58 -07:00
msan_llvm_is_constant.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
msan_llvm_launder_invariant.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
msan_llvm_strip_invariant.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
msan_x86_bts_asm.ll
msan_x86intrinsics.ll
mul_by_constant.ll
nosanitize.ll
origin-alignment.ll
origin-array.ll
pr32842.ll
return_from_main.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
store-long-origin.ll
store-origin.ll Migrate function attribute "no-frame-pointer-elim"="false" to "frame-pointer"="none" as cleanups after D56351 2019-12-24 16:27:51 -08:00
str-nobuiltin.ll
unreachable.ll
unsized_type.ll
vector_arith.ll
vector_cmp.ll
vector_cvt.ll [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
vector_pack.ll
vector_shift.ll
with-call-type-size.ll