[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelLowering.cpp

Evan Cheng evan.cheng at apple.com
Tue Mar 27 18:54:12 PDT 2007



Changes in directory llvm/lib/Target/ARM:

ARMISelLowering.cpp updated: 1.31 -> 1.32
---
Log message:

Remove isLegalAddressImmediate.

---
Diffs of the changes:  (+0 -14)

 ARMISelLowering.cpp |   14 --------------
 1 files changed, 14 deletions(-)


Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
diff -u llvm/lib/Target/ARM/ARMISelLowering.cpp:1.31 llvm/lib/Target/ARM/ARMISelLowering.cpp:1.32
--- llvm/lib/Target/ARM/ARMISelLowering.cpp:1.31	Tue Mar 27 11:19:21 2007
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp	Tue Mar 27 20:53:55 2007
@@ -1281,20 +1281,6 @@
 //                           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.






More information about the llvm-commits mailing list