projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c6071
)
Turn on AddOperator folding in GEP.
author
Eric Christopher
<echristo@apple.com>
Sun, 17 Oct 2010 01:41:46 +0000
(
01:41
+0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMFastISel.cpp
b/lib/Target/ARM/ARMFastISel.cpp
index 40269a8a9bd9806b305125bcab044d97e110fd47..7dd11ffb3e580fc33a9283efa99f76621e0c84e2 100644
(file)
--- 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 =