diff options
| author | Eric Christopher <echristo@apple.com> | 2010-10-17 01:41:46 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-10-17 01:41:46 +0000 |
| commit | abc3a9d34b49f4532c6362d86cc8a9c995c03a03 (patch) | |
| tree | 5fdfe33a6c2b694bb6ae9e7b0e87944c760c2261 /llvm/lib | |
| parent | 947e422c469c54b775b81b42d33899d868364125 (diff) | |
| download | bcm5719-llvm-abc3a9d34b49f4532c6362d86cc8a9c995c03a03.tar.gz bcm5719-llvm-abc3a9d34b49f4532c6362d86cc8a9c995c03a03.zip | |
Turn on AddOperator folding in GEP.
llvm-svn: 116679
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 2 |
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 = |

