forked from OSchip/llvm-project
Revert part of r146995 that was accidentally commmitted.
llvm-svn: 146996
This commit is contained in:
parent
4e210691c0
commit
14468c6cb6
|
@ -293,12 +293,6 @@ SDNode* MipsDAGToDAGISel::Select(SDNode *Node) {
|
|||
case ISD::ConstantFP: {
|
||||
ConstantFPSDNode *CN = dyn_cast<ConstantFPSDNode>(Node);
|
||||
if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) {
|
||||
if (Subtarget.hasMips64()) {
|
||||
SDValue Zero = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl,
|
||||
Mips::ZERO_64, MVT::i64);
|
||||
return CurDAG->getMachineNode(Mips::DMTC1, dl, MVT::f64, Zero);
|
||||
}
|
||||
|
||||
SDValue Zero = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl,
|
||||
Mips::ZERO, MVT::i32);
|
||||
return CurDAG->getMachineNode(Mips::BuildPairF64, dl, MVT::f64, Zero,
|
||||
|
|
Loading…
Reference in New Issue