OSDN Git Service
(root)
/
android-x86
/
external-swiftshader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8208e75
)
Fix offset adjustment in x86 address optimization.
author
Nicolas Capens
<capn@google.com>
Wed, 23 Nov 2016 20:37:06 +0000
(15:37 -0500)
committer
Nicolas Capens
<nicolascapens@google.com>
Wed, 23 Nov 2016 22:22:03 +0000
(22:22 +0000)
Change-Id: I469a7ddaa658d79fc491112b63972bd9b056689d
Reviewed-on: https://chromium-review.googlesource.com/414186
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/IceTargetLoweringX86BaseImpl.h
patch
|
blob
|
history
diff --git
a/src/IceTargetLoweringX86BaseImpl.h
b/src/IceTargetLoweringX86BaseImpl.h
index
205d783
..
bfdb019
100644
(file)
--- a/
src/IceTargetLoweringX86BaseImpl.h
+++ b/
src/IceTargetLoweringX86BaseImpl.h
@@
-5387,7
+5387,7
@@
const Inst *AddressOptimizer::matchAssign(Variable **Var,
if (Utils::WouldOverflowAdd(*Offset, MoreOffset))
return nullptr;
*Var = nullptr;
- Offset += MoreOffset;
+
*
Offset += MoreOffset;
return VarAssign;
} else if (auto *AddReloc = llvm::dyn_cast<ConstantRelocatable>(SrcOp)) {
if (*Relocatable == nullptr) {