llvm-project/compiler-rt/lib/msan
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
..
tests [NFC, msan] Increase stack in small stack tests 2020-04-15 19:41:57 -07:00
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [msan] Blacklist __gxx_personality_v0. 2019-10-31 10:22:52 -07:00
msan.cpp [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
msan.h [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
msan.syms.extra
msan_allocator.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
msan_allocator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_blacklist.txt [msan] Blacklist __gxx_personality_v0. 2019-10-31 10:22:52 -07:00
msan_chained_origin_depot.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_chained_origin_depot.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_flags.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_flags.inc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_interceptors.cpp [MSan] Add COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED 2020-04-03 17:18:53 +02:00
msan_interface_internal.h [MSAN] Pass Origin by parameter to __msan_warning functions 2020-06-15 17:49:18 -07:00
msan_linux.cpp Update compiler-rt cpplint.py 2019-09-11 21:33:06 +00:00
msan_new_delete.cpp Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
msan_origin.h [msan] Fix comment of __msan::Origin::isHeapOrigin 2020-06-14 23:58:49 -07:00
msan_poisoning.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_poisoning.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_report.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_report.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_thread.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_thread.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00