forked from OSchip/llvm-project
compile: double test() {}
into: _test: fldz ret instead of: _test: subl $12, %esp #IMPLICIT_DEF %xmm0 movsd %xmm0, (%esp) fldl (%esp) addl $12, %esp ret llvm-svn: 48213
This commit is contained in:
parent
a3860a2422
commit
5c7bda440f
|
@ -1825,8 +1825,10 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
|||
assert(MVT::isFloatingPoint(VT) &&
|
||||
MVT::isFloatingPoint(Operand.getValueType()) && "Invalid FP cast!");
|
||||
if (Operand.getValueType() == VT) return Operand; // noop conversion.
|
||||
if (Operand.getOpcode() == ISD::UNDEF)
|
||||
return getNode(ISD::UNDEF, VT);
|
||||
break;
|
||||
case ISD::SIGN_EXTEND:
|
||||
case ISD::SIGN_EXTEND:
|
||||
assert(MVT::isInteger(VT) && MVT::isInteger(Operand.getValueType()) &&
|
||||
"Invalid SIGN_EXTEND!");
|
||||
if (Operand.getValueType() == VT) return Operand; // noop extension
|
||||
|
|
Loading…
Reference in New Issue