[compiler-rt] [compiler-rt][nsan] Add support for nan detection (PR #101531)

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 11:42:15 PDT 2024


================
@@ -47,3 +47,5 @@ NSAN_FLAG(bool, enable_loadtracking_stats, false,
           "memory, the number of times nsan resumed from the original value "
           "due to invalid or unknown types.")
 NSAN_FLAG(bool, print_stats_on_exit, false, "If true, print stats on exit.")
+NSAN_FLAG(bool, check_nan, true,
----------------
alexander-shaposhnikov wrote:

i remember the comment about making `check_nan` `true`,  I'm a bit worried that this check might fire early in places where nans are legitimate... Not sure, but intuitively I'd probably keep it "false" by default, at least for now.

https://github.com/llvm/llvm-project/pull/101531


More information about the llvm-commits mailing list