[llvm] CodeGen: Add ISD::AssertNoFPClass (PR #135946)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 03:27:54 PDT 2025


================
@@ -7365,6 +7365,10 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
            N2.getOpcode() == ISD::TargetConstant && "Invalid FP_ROUND!");
     if (N1.getValueType() == VT) return N1;  // noop conversion.
     break;
+  case ISD::AssertNoFPClass:
+    assert(N1.getValueType().isFloatingPoint() &&
+           "AssertNoFPClass is used for a non-floating type");
----------------
arsenm wrote:

Should assert the second operand is a valid FPClassTest

https://github.com/llvm/llvm-project/pull/135946


More information about the llvm-commits mailing list