From: Evan Cheng Date: Thu, 26 Mar 2009 19:09:01 +0000 (+0000) Subject: tADDhirr is a thumb instruction. Do not allow this code to be reached in non-thumb... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9d7b5309c267048114f1438ec0366923c99ca34d;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp index d48b32af613..3c6d21fc409 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);