From 780748d565b189968c172451d6bb843e673a887c Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 28 Jul 2009 05:48:47 +0000 Subject: - 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 --- llvm/lib/Target/ARM/Thumb1InstrInfo.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'llvm/lib/Target/ARM/Thumb1InstrInfo.cpp') 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; -- cgit v1.2.3