aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMInstrInfo.cpp
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-07-23 17:06:46 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-07-23 17:06:46 +0000
commitdf272512181f7db8fb865c58272c47a9e2bd52c6 (patch)
treeef76f8a93008a2a0a10870625f92dd7528a084ad /lib/Target/ARM/ARMInstrInfo.cpp
parente2fc6c7baeb99dfe098837a3e846b5da1a4cf686 (diff)
downloadexternal_llvm-df272512181f7db8fb865c58272c47a9e2bd52c6.zip
external_llvm-df272512181f7db8fb865c58272c47a9e2bd52c6.tar.gz
external_llvm-df272512181f7db8fb865c58272c47a9e2bd52c6.tar.bz2
Fix frame index elimination to correctly handle thumb-2 addressing modes that don't allow negative offsets. During frame elimination convert *i12 opcode to a *i8 when necessary due to a negative offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMInstrInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.cpp b/lib/Target/ARM/ARMInstrInfo.cpp
index 688dc31..45b77c8 100644
--- a/lib/Target/ARM/ARMInstrInfo.cpp
+++ b/lib/Target/ARM/ARMInstrInfo.cpp
@@ -30,6 +30,11 @@ ARMInstrInfo::ARMInstrInfo(const ARMSubtarget &STI)
}
unsigned ARMInstrInfo::
+unsignedOffsetOpcodeToSigned(unsigned opcode, unsigned *NumBits) const {
+ return 0;
+}
+
+unsigned ARMInstrInfo::
getUnindexedOpcode(unsigned Opc) const {
switch (Opc) {
default: break;