aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-28 01:53:55 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-28 01:53:55 +0000
commitcaaf69107ece8bd9864fed4d64e2a84fa5f8cd4b (patch)
treef1134425261d5e769149e6ee0ace37529e909cfa /lib/Target/ARM/ARMISelLowering.cpp
parent73ad8354ec9dde60ed8eb9b75d57f36ea7e49cca (diff)
Remove isLegalAddressImmediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 50ac5e9c69..c646e54b58 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -1281,20 +1281,6 @@ ARMTargetLowering::InsertAtEndOfBasicBlock(MachineInstr *MI,
// ARM Optimization Hooks
//===----------------------------------------------------------------------===//
-/// isLegalAddressExpression - Return true if the binary expression made up of
-/// specified opcode, operands, and type can be folded into target addressing
-/// mode for load / store of the given type.
-bool ARMTargetLowering::isLegalAddressExpression(unsigned Opc, Value *Op0,
- Value *Op1, const Type *Ty) const {
- if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
- if (Opc == Instruction::Add)
- return isLegalAddressImmediate(Op1C->getSExtValue(), Ty);
- if (Opc == Instruction::Sub)
- return isLegalAddressImmediate(-Op1C->getSExtValue(), Ty);
- }
- return false;
-}
-
/// isLegalAddressImmediate - Return true if the integer value can be used
/// as the offset of the target addressing mode for load / store of the
/// given type.