Skip to content

Commit 5218850

Browse files
committed
Fix a ppc long double regression I introduced yesterday due to a
simplification. This fixes automotive-basicmath on PPC. llvm-svn: 46072
1 parent 2d700ed commit 5218850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
17531753
case ISD::FP_EXTEND:
17541754
assert(MVT::isFloatingPoint(VT) &&
17551755
MVT::isFloatingPoint(Operand.getValueType()) && "Invalid FP cast!");
1756+
if (Operand.getValueType() == VT) return Operand; // noop conversion.
17561757
break;
17571758
case ISD::SIGN_EXTEND:
17581759
assert(MVT::isInteger(VT) && MVT::isInteger(Operand.getValueType()) &&

0 commit comments

Comments
 (0)