diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2020-05-05 13:06:49 -0700 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2020-05-05 13:30:30 -0700 |
commit | fbaaa16802d7b2fc096c8ed5fa23e0cad56807a2 (patch) | |
tree | eb0673fabf194856807f46c969546a6ee065be12 /libc/utils | |
parent | d606dcc65254b13e6238b69d8185d3667e850522 (diff) | |
download | llvm-fbaaa16802d7b2fc096c8ed5fa23e0cad56807a2.zip llvm-fbaaa16802d7b2fc096c8ed5fa23e0cad56807a2.tar.gz llvm-fbaaa16802d7b2fc096c8ed5fa23e0cad56807a2.tar.bz2 |
[libc] Add no_sanitize("address") attribute to the getMPFRMatcher function.
This dramtically reduces the run time of tests. For example,
sincosf_test takes over 25 minutes without this attribute but only 8
seconds with this attribute.
Diffstat (limited to 'libc/utils')
-rw-r--r-- | libc/utils/MPFRWrapper/MPFRUtils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.h b/libc/utils/MPFRWrapper/MPFRUtils.h index 31afd39..6cdba34 100644 --- a/libc/utils/MPFRWrapper/MPFRUtils.h +++ b/libc/utils/MPFRWrapper/MPFRUtils.h @@ -73,6 +73,7 @@ public: } // namespace internal template <typename T> +__attribute__((no_sanitize("address"))) internal::MPFRMatcher<T> getMPFRMatcher(Operation op, T input, Tolerance t) { static_assert( __llvm_libc::cpp::IsFloatingPointType<T>::Value, |