[LLVMdev] Which floating-point comparison?

Russell Wallace russell.wallace at gmail.com
Sun Mar 28 07:45:11 PDT 2010


I notice llvm provides both ordered and unordered variants of
floating-point comparison. Which of these is the right one to use by
default? I suppose the two criteria would be, in order of importance:

1. Which is more efficient (more directly maps to typical hardware)?

2. Which is more familiar (more like the way C and Fortran do it)?



More information about the llvm-dev mailing list