aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-26 19:09:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-26 19:09:01 +0000
commit9d7b5309c267048114f1438ec0366923c99ca34d (patch)
treeda6d91a55d973eba1fd1c1307a8746c63d29699e
parentb98bbb7597495fb401b020679a94389298175506 (diff)
tADDhirr is a thumb instruction. Do not allow this code to be reached in non-thumb mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67765 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMISelDAGToDAG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp
index d48b32af61..3c6d21fc40 100644
--- a/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -595,6 +595,8 @@ SDNode *ARMDAGToDAGISel::Select(SDValue Op) {
}
}
case ISD::ADD: {
+ if (!Subtarget->isThumb())
+ break;
// Select add sp, c to tADDhirr.
SDValue N0 = Op.getOperand(0);
SDValue N1 = Op.getOperand(1);