summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-04-12 22:24:52 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-04-12 22:24:52 +0000
commit6d224459f42fd1e2a57479b6b60e55053dce38d7 (patch)
tree7f019a688d05e9c4de387507329bd864e81d32df /lib/Target/Mips/MipsSEISelDAGToDAG.cpp
parent9367b8d4f254d9e5cccb15334cc1a969c5be0d31 (diff)
downloadllvm-6d224459f42fd1e2a57479b6b60e55053dce38d7.tar.gz
llvm-6d224459f42fd1e2a57479b6b60e55053dce38d7.tar.bz2
llvm-6d224459f42fd1e2a57479b6b60e55053dce38d7.tar.xz
[mips] Instruction selection patterns for carry-setting and using add
instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSEISelDAGToDAG.cpp')
-rw-r--r--lib/Target/Mips/MipsSEISelDAGToDAG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSEISelDAGToDAG.cpp b/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
index e0f5832d9e..0114687add 100644
--- a/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ b/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -303,6 +303,8 @@ std::pair<bool, SDNode*> MipsSEDAGToDAGISel::selectNode(SDNode *Node) {
}
case ISD::ADDE: {
+ if (Subtarget.hasDSP()) // Select DSP instructions, ADDSC and ADDWC.
+ break;
SDValue InFlag = Node->getOperand(2);
Result = selectAddESubE(Mips::ADDu, InFlag, InFlag.getValue(0), DL, Node);
return std::make_pair(true, Result);