Closed muhammad-tanvir-1211 closed 6 months ago
If the purpose of the patch is removing the warning during the unit test/benchmark compilation, it would be better to set -Wno-tautological-constant-compare
in test/CMakeLists.txt
and benchmark/portblas/CMakeLists.txt
.
-ffp-model=precise
flag is an umbrella option that could have side consequences on many aspects since it "disables optimizations that are not value-safe on floating-point data".
This PR fixes an error seen from
googlebench
andgtest
(warning in this case) that explicit comparison with NaN is not allowed in fast precision mode.