diff options
| author | Dale Johannesen <dalej@apple.com> | 2008-01-21 01:00:34 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2008-01-21 01:00:34 +0000 |
| commit | 59e0e4bf35f754f000a45d18e4976673a2272b29 (patch) | |
| tree | 599b8fd6216103a19ccefded892bd4593b67c075 /llvm | |
| parent | afa84da4e0381563642fbb72e7e76fdd19ba4946 (diff) | |
| download | bcm5719-llvm-59e0e4bf35f754f000a45d18e4976673a2272b29.tar.gz bcm5719-llvm-59e0e4bf35f754f000a45d18e4976673a2272b29.zip | |
Move DAG-changing code out of #ifndef NDEBUG.
llvm-svn: 46204
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index be889ea1dab..6b698f41aa4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1919,7 +1919,6 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, MVT::isFloatingPoint(N1.getValueType()) && MVT::getSizeInBits(VT) <= MVT::getSizeInBits(N1.getValueType()) && isa<ConstantSDNode>(N2) && "Invalid FP_ROUND!"); - if (N1.getValueType() == VT) return N1; // noop conversion. break; case ISD::AssertSext: case ISD::AssertZext: @@ -2122,6 +2121,9 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, if (N2C && N2C->getValue() == 0) return N1; break; + case ISD::FP_ROUND: + if (N1.getValueType() == VT) return N1; // noop conversion. + break; case ISD::FP_ROUND_INREG: if (cast<VTSDNode>(N2)->getVT() == VT) return N1; // Not actually rounding. break; |

