summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-17 01:41:46 +0000
committerEric Christopher <echristo@apple.com>2010-10-17 01:41:46 +0000
commitabc3a9d34b49f4532c6362d86cc8a9c995c03a03 (patch)
tree5fdfe33a6c2b694bb6ae9e7b0e87944c760c2261
parent947e422c469c54b775b81b42d33899d868364125 (diff)
downloadbcm5719-llvm-abc3a9d34b49f4532c6362d86cc8a9c995c03a03.tar.gz
bcm5719-llvm-abc3a9d34b49f4532c6362d86cc8a9c995c03a03.zip
Turn on AddOperator folding in GEP.
llvm-svn: 116679
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 40269a8a9bd..7dd11ffb3e5 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -632,7 +632,7 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, AddrBase &Base,
if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) {
// Constant-offset addressing.
TmpOffset += CI->getSExtValue() * S;
- } else if (0 && isa<AddOperator>(Op) &&
+ } else if (isa<AddOperator>(Op) &&
isa<ConstantInt>(cast<AddOperator>(Op)->getOperand(1))) {
// An add with a constant operand. Fold the constant.
ConstantInt *CI =
OpenPOWER on IntegriCloud