mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Turn on AddOperator folding in GEP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -632,7 +632,7 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, AddrBase &Base,
|
|||||||
if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) {
|
if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) {
|
||||||
// Constant-offset addressing.
|
// Constant-offset addressing.
|
||||||
TmpOffset += CI->getSExtValue() * S;
|
TmpOffset += CI->getSExtValue() * S;
|
||||||
} else if (0 && isa<AddOperator>(Op) &&
|
} else if (isa<AddOperator>(Op) &&
|
||||||
isa<ConstantInt>(cast<AddOperator>(Op)->getOperand(1))) {
|
isa<ConstantInt>(cast<AddOperator>(Op)->getOperand(1))) {
|
||||||
// An add with a constant operand. Fold the constant.
|
// An add with a constant operand. Fold the constant.
|
||||||
ConstantInt *CI =
|
ConstantInt *CI =
|
||||||
|
Reference in New Issue
Block a user