================
@@ -1020,7 +1028,7 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
}
mlir::Value createIsNaN(mlir::Location loc, mlir::Value operand) {
- return createCompare(loc, cir::CmpOpKind::ne, operand, operand);
+ return createFCompare(loc, cir::FCmpOpKind::une, operand, operand);
----------------
andykaylor wrote:
Why not `uno` here? The result will be the same, but `uno` is more explicitly
what we're checking.
https://github.com/llvm/llvm-project/pull/244577
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits