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:
2d630d7
)
Don't need to save piecemeal now.
author
Eric Christopher
<echristo@apple.com>
Fri, 19 Nov 2010 22:39:56 +0000
(22:39 +0000)
committer
Eric Christopher
<echristo@apple.com>
Fri, 19 Nov 2010 22:39:56 +0000
(22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119862
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 719cf5a61b5e1cb4a5a639cf6a0cdc895849eca9..c991c4ed28f852646f1792612a6ddbeb5c68d9a2 100644
(file)
--- a/
lib/Target/ARM/ARMFastISel.cpp
+++ b/
lib/Target/ARM/ARMFastISel.cpp
@@
-647,8
+647,7
@@
bool ARMFastISel::ARMComputeAddress(const Value *Obj, Address &Addr) {
break;
}
case Instruction::GetElementPtr: {
- int SavedOffset = Addr.Offset;
- unsigned SavedBase = Addr.Base.Reg;
+ Address SavedAddr = Addr;
int TmpOffset = Addr.Offset;
// Iterate through the GEP folding the constants into offsets where
@@
-689,8
+688,7
@@
bool ARMFastISel::ARMComputeAddress(const Value *Obj, Address &Addr) {
if (ARMComputeAddress(U->getOperand(0), Addr)) return true;
// We failed, restore everything and try the other options.
- Addr.Offset = SavedOffset;
- Addr.Base.Reg = SavedBase;
+ Addr = SavedAddr;
unsupported_gep:
break;