[llvm] [SelectionDAG] Use `KnownBits` to determine if an operand may be NaN. (PR #188606)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 09:46:32 PDT 2026
================
@@ -6112,6 +6112,16 @@ KnownFPClass SelectionDAG::computeKnownFPClass(SDValue Op,
}
break;
}
+ case ISD::BITCAST: {
+ // Try to infer NaN from known bits, but only for detecting signaling or
+ // nonsignaling NaNs
+ EVT VT = Op.getValueType();
+ if (VT.isFloatingPoint()) {
----------------
zGoldthorpe wrote:
Looks like these calls are indeed incorrect. I'm working on patches for them now.
https://github.com/llvm/llvm-project/pull/188606
More information about the llvm-commits
mailing list