summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-16 17:59:31 +0000
committerChris Lattner <sabre@nondot.org>2008-01-16 17:59:31 +0000
commit52188501f6f0991a0e7f4abf4f5d2ee6ecd61c78 (patch)
tree5602c24ae805e0a2dc268c31db85ba144136c11c /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent2d700ed2bacfde5fca2589511290744ccc23807e (diff)
downloadbcm5719-llvm-52188501f6f0991a0e7f4abf4f5d2ee6ecd61c78.tar.gz
bcm5719-llvm-52188501f6f0991a0e7f4abf4f5d2ee6ecd61c78.zip
Fix a ppc long double regression I introduced yesterday due to a
simplification. This fixes automotive-basicmath on PPC. llvm-svn: 46072
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 67da854aa4f..34825beffab 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1753,6 +1753,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
case ISD::FP_EXTEND:
assert(MVT::isFloatingPoint(VT) &&
MVT::isFloatingPoint(Operand.getValueType()) && "Invalid FP cast!");
+ if (Operand.getValueType() == VT) return Operand; // noop conversion.
break;
case ISD::SIGN_EXTEND:
assert(MVT::isInteger(VT) && MVT::isInteger(Operand.getValueType()) &&
OpenPOWER on IntegriCloud