libscratchcpp icon indicating copy to clipboard operation
libscratchcpp copied to clipboard

Enable NoNaNs fast math flag

Open adazem009 opened this issue 5 months ago • 0 comments

Enabling this flag results in a nice performance improvement. However, it breaks NaN detection. The flag can still be enabled if we ignore it in LLVMBuildUtils::isNaN(). This only possible since LLVM 20.1 (https://github.com/llvm/llvm-project/commit/a77346bad0d80a7f7e184f3d6e12c7f532101136) which introduces CreateFCmpFMF().

adazem009 avatar Aug 03 '25 15:08 adazem009