Turn on AddOperator folding in GEP.
authorEric Christopher <echristo@apple.com>
Sun, 17 Oct 2010 01:41:46 +0000 (01:41 +0000)
committerEric Christopher <echristo@apple.com>
Sun, 17 Oct 2010 01:41:46 +0000 (01:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116679 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 40269a8a9bd9806b305125bcab044d97e110fd47..7dd11ffb3e580fc33a9283efa99f76621e0c84e2 100644 (file)
@@ -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 =