[llvm-commits] [llvm] r116679 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Eric Christopher echristo at apple.com
Sat Oct 16 18:41:46 PDT 2010


Author: echristo
Date: Sat Oct 16 20:41:46 2010
New Revision: 116679

URL: http://llvm.org/viewvc/llvm-project?rev=116679&view=rev
Log:
Turn on AddOperator folding in GEP.

Modified:
    llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=116679&r1=116678&r2=116679&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Sat Oct 16 20:41:46 2010
@@ -632,7 +632,7 @@
             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 =





More information about the llvm-commits mailing list