[llvm] CodeGen: Add ISD::AssertNoFPClass (PR #138839)
Mikael Holmén via llvm-commits
llvm-commits at lists.llvm.org
Thu May 15 05:18:33 PDT 2025
================
@@ -7490,6 +7499,16 @@ 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");
+ assert(isa<ConstantSDNode>(N2) && "NoFPClass is not Constant");
+ FPClassTest NoFPClass = static_cast<FPClassTest>(N2->getAsZExtVal());
----------------
mikaelholmen wrote:
NoFPClass is unused in builds without asserts
https://github.com/llvm/llvm-project/pull/138839
More information about the llvm-commits
mailing list