Move DAG-changing code out of #ifndef NDEBUG.

llvm-svn: 46204
This commit is contained in:
Dale Johannesen 2008-01-21 01:00:34 +00:00
parent afa84da4e0
commit 59e0e4bf35
1 changed files with 3 additions and 1 deletions

View File

@ -1919,7 +1919,6 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
MVT::isFloatingPoint(N1.getValueType()) && MVT::isFloatingPoint(N1.getValueType()) &&
MVT::getSizeInBits(VT) <= MVT::getSizeInBits(N1.getValueType()) && MVT::getSizeInBits(VT) <= MVT::getSizeInBits(N1.getValueType()) &&
isa<ConstantSDNode>(N2) && "Invalid FP_ROUND!"); isa<ConstantSDNode>(N2) && "Invalid FP_ROUND!");
if (N1.getValueType() == VT) return N1; // noop conversion.
break; break;
case ISD::AssertSext: case ISD::AssertSext:
case ISD::AssertZext: case ISD::AssertZext:
@ -2122,6 +2121,9 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
if (N2C && N2C->getValue() == 0) if (N2C && N2C->getValue() == 0)
return N1; return N1;
break; break;
case ISD::FP_ROUND:
if (N1.getValueType() == VT) return N1; // noop conversion.
break;
case ISD::FP_ROUND_INREG: case ISD::FP_ROUND_INREG:
if (cast<VTSDNode>(N2)->getVT() == VT) return N1; // Not actually rounding. if (cast<VTSDNode>(N2)->getVT() == VT) return N1; // Not actually rounding.
break; break;