diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-07-28 05:48:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-07-28 05:48:47 +0000 |
commit | 780748d565b189968c172451d6bb843e673a887c (patch) | |
tree | bae7e9bfb8057b9a72baab927e04980f05c68afc /llvm/lib/Target/ARM/Thumb1InstrInfo.cpp | |
parent | 7be52a817999ded3ab10d853db1612904c01b8c6 (diff) | |
download | bcm5719-llvm-780748d565b189968c172451d6bb843e673a887c.tar.gz bcm5719-llvm-780748d565b189968c172451d6bb843e673a887c.zip |
- More refactoring. This gets rid of all of the getOpcode calls.
- This change also makes it possible to switch between ARM / Thumb on a
per-function basis.
- Fixed thumb2 routine which expand reg + arbitrary immediate. It was using
using ARM so_imm logic.
- Use movw and movt to do reg + imm when profitable.
- Other code clean ups and minor optimizations.
llvm-svn: 77300
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb1InstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb1InstrInfo.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp index ed311325000..2ca2686f1ec 100644 --- a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp +++ b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp @@ -30,18 +30,6 @@ unsigned Thumb1InstrInfo::getUnindexedOpcode(unsigned Opc) const { return 0; } -unsigned Thumb1InstrInfo::getOpcode(ARMII::Op Op) const { - switch (Op) { - case ARMII::ADDri: return ARM::tADDi8; - case ARMII::MOVr: return ARM::tMOVr; - case ARMII::SUBri: return ARM::tSUBi8; - default: - break; - } - - return 0; -} - bool Thumb1InstrInfo::BlockHasNoFallThrough(const MachineBasicBlock &MBB) const { if (MBB.empty()) return false; |