[llvm-commits] [llvm] r46204 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Dale Johannesen
dalej at apple.com
Sun Jan 20 17:00:35 PST 2008
Author: johannes
Date: Sun Jan 20 19:00:34 2008
New Revision: 46204
URL: http://llvm.org/viewvc/llvm-project?rev=46204&view=rev
Log:
Move DAG-changing code out of #ifndef NDEBUG.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=46204&r1=46203&r2=46204&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sun Jan 20 19:00:34 2008
@@ -1919,7 +1919,6 @@
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 @@
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;
More information about the llvm-commits
mailing list