aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commitdc0b0ef6cd593a7eb502ca0842fa1f653cb68140 (patch)
treed6b9f6f6110073f54dd341fcea4020fc3f839c24 /lib
parent45c607134b396ebdb8eb0cefe831e6ab2e37deac (diff)
downloadexternal_llvm-dc0b0ef6cd593a7eb502ca0842fa1f653cb68140.zip
external_llvm-dc0b0ef6cd593a7eb502ca0842fa1f653cb68140.tar.gz
external_llvm-dc0b0ef6cd593a7eb502ca0842fa1f653cb68140.tar.bz2
Turn on AddOperator folding in GEP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 40269a8..7dd11ff 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/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 =