https://github.com/tblah commented: That's an interesting solution. I think if we are going to handle special cases directly then the other case is that `NaN == NaN` evaluates to false. https://github.com/llvm/llvm-project/pull/184761