diff options
author | Vitaly Buka <vitalybuka@google.com> | 2024-03-07 10:52:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 10:52:43 -0800 |
commit | a6a6fca7911feab8325129ea57247303b3c8d558 (patch) | |
tree | 99a68043bb1d1fe6b81d9c4cd648c32a501ad168 /llvm/lib/Passes/PassBuilder.cpp | |
parent | 41572177d129bf19f13f077a30b582fd3b8f790c (diff) | |
download | llvm-a6a6fca7911feab8325129ea57247303b3c8d558.zip llvm-a6a6fca7911feab8325129ea57247303b3c8d558.tar.gz llvm-a6a6fca7911feab8325129ea57247303b3c8d558.tar.bz2 |
[ubsan][pgo] Pass to remove ubsan checks based on profile data (#83471)
UBSAN checks can be too expensive to be used
in release binaries. However not all code affect
performace in the same way. Removing small
number of checks in hot code we can performance
loss, preserving most of the checks.
Diffstat (limited to 'llvm/lib/Passes/PassBuilder.cpp')
-rw-r--r-- | llvm/lib/Passes/PassBuilder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp index e0bc57f..4d1eb10 100644 --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/lib/Passes/PassBuilder.cpp @@ -177,6 +177,7 @@ #include "llvm/Transforms/Instrumentation/PGOForceFunctionAttrs.h" #include "llvm/Transforms/Instrumentation/PGOInstrumentation.h" #include "llvm/Transforms/Instrumentation/PoisonChecking.h" +#include "llvm/Transforms/Instrumentation/RemoveTrapsPass.h" #include "llvm/Transforms/Instrumentation/SanitizerBinaryMetadata.h" #include "llvm/Transforms/Instrumentation/SanitizerCoverage.h" #include "llvm/Transforms/Instrumentation/ThreadSanitizer.h" |