aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorGui Andrade <guiand@google.com>2020-08-10 19:03:40 +0000
committerGui Andrade <guiand@google.com>2020-08-10 19:22:27 +0000
commitc0b5000bd848303320c03f80fbf84d71e74518c9 (patch)
treee68d24497dc47c75ef0cffdac307ae98cd69ef18 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentab6a517ea41e1cb63856cce6f7fa4a196ffca368 (diff)
downloadllvm-c0b5000bd848303320c03f80fbf84d71e74518c9.zip
llvm-c0b5000bd848303320c03f80fbf84d71e74518c9.tar.gz
llvm-c0b5000bd848303320c03f80fbf84d71e74518c9.tar.bz2
[MSAN RT] Use __sanitizer::mem_is_zero in __msan_test_shadow
The former function is particularly optimized for exactly the use case we're interested in: an all-zero buffer. This reduces the overhead of calling this function some 80% or more. This is particularly for instrumenting code heavy with string processing functions, like grep. An invocation of grep with the pattern '[aeiou]k[aeiou]' has its runtime reduced by ~75% with this patch Differential Revision: https://reviews.llvm.org/D84961
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions