[llvm-commits] [llvm] r67765 - /llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
Evan Cheng
evan.cheng at apple.com
Thu Mar 26 12:09:01 PDT 2009
Author: evancheng
Date: Thu Mar 26 14:09:01 2009
New Revision: 67765
URL: http://llvm.org/viewvc/llvm-project?rev=67765&view=rev
Log:
tADDhirr is a thumb instruction. Do not allow this code to be reached in non-thumb mode.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp?rev=67765&r1=67764&r2=67765&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp Thu Mar 26 14:09:01 2009
@@ -595,6 +595,8 @@
}
}
case ISD::ADD: {
+ if (!Subtarget->isThumb())
+ break;
// Select add sp, c to tADDhirr.
SDValue N0 = Op.getOperand(0);
SDValue N1 = Op.getOperand(1);
More information about the llvm-commits
mailing list