[llvm-commits] [llvm] r75683 - /llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
David Goodwin
david_goodwin at apple.com
Tue Jul 14 14:29:47 PDT 2009
Author: david_goodwin
Date: Tue Jul 14 16:29:29 2009
New Revision: 75683
URL: http://llvm.org/viewvc/llvm-project?rev=75683&view=rev
Log:
Check for PRE_INC and POST_INC.
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=75683&r1=75682&r2=75683&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp Tue Jul 14 16:29:29 2009
@@ -644,7 +644,7 @@
if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N)) {
int RHSC = (int)RHS->getZExtValue();
if (RHSC >= 0 && RHSC < 0x100) { // 8 bits.
- OffImm = (AM == ISD::PRE_INC)
+ OffImm = ((AM == ISD::PRE_INC) || (AM == ISD::POST_INC))
? CurDAG->getTargetConstant(RHSC, MVT::i32)
: CurDAG->getTargetConstant(-RHSC, MVT::i32);
return true;
More information about the llvm-commits
mailing list