From fbaaa16802d7b2fc096c8ed5fa23e0cad56807a2 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Tue, 5 May 2020 13:06:49 -0700 Subject: [PATCH] [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. --- libc/utils/MPFRWrapper/MPFRUtils.h | 1 + 1 file changed, 1 insertion(+) 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 +__attribute__((no_sanitize("address"))) internal::MPFRMatcher getMPFRMatcher(Operation op, T input, Tolerance t) { static_assert( __llvm_libc::cpp::IsFloatingPointType::Value, -- 2.7.4