diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-19 19:52:25 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-19 19:52:25 +0000 |
commit | 82099683060abb1f74453d06e78a3729a75ef7ee (patch) | |
tree | 9461f798afec899754e02d0d3ee72e5a10b83d77 /lib/Target/Mips/MipsISelDAGToDAG.cpp | |
parent | d22170e16a42aed0212e1e52f189bfb8b7c7105d (diff) | |
download | external_llvm-82099683060abb1f74453d06e78a3729a75ef7ee.zip external_llvm-82099683060abb1f74453d06e78a3729a75ef7ee.tar.gz external_llvm-82099683060abb1f74453d06e78a3729a75ef7ee.tar.bz2 |
Tidy up. Simplify logic. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Mips/MipsISelDAGToDAG.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsISelDAGToDAG.cpp b/lib/Target/Mips/MipsISelDAGToDAG.cpp index 4ac51e8..b33a4e6 100644 --- a/lib/Target/Mips/MipsISelDAGToDAG.cpp +++ b/lib/Target/Mips/MipsISelDAGToDAG.cpp @@ -294,7 +294,7 @@ SDNode* MipsDAGToDAGISel::Select(SDNode *Node) { ConstantFPSDNode *CN = dyn_cast<ConstantFPSDNode>(Node); if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { SDValue Zero = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), dl, - Mips::ZERO, MVT::i32); + Mips::ZERO, MVT::i32); return CurDAG->getMachineNode(Mips::BuildPairF64, dl, MVT::f64, Zero, Zero); } @@ -315,10 +315,12 @@ SDNode* MipsDAGToDAGISel::Select(SDNode *Node) { DestReg = Mips::V1_64; } - SDNode *Rdhwr = CurDAG->getMachineNode(RdhwrOpc, Node->getDebugLoc(), - Node->getValueType(0), CurDAG->getRegister(SrcReg, PtrVT)); + SDNode *Rdhwr = + CurDAG->getMachineNode(RdhwrOpc, Node->getDebugLoc(), + Node->getValueType(0), + CurDAG->getRegister(SrcReg, PtrVT)); SDValue Chain = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, DestReg, - SDValue(Rdhwr, 0)); + SDValue(Rdhwr, 0)); SDValue ResNode = CurDAG->getCopyFromReg(Chain, dl, DestReg, PtrVT); ReplaceUses(SDValue(Node, 0), ResNode); return ResNode.getNode(); |