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:
652203f
)
Fix an over-pessimization about GlobalVariable addresses in X86FastISel.
author
Dan Gohman
<gohman@apple.com>
Mon, 29 Sep 2008 21:13:15 +0000
(21:13 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 29 Sep 2008 21:13:15 +0000
(21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56802
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FastISel.cpp
b/lib/Target/X86/X86FastISel.cpp
index d266451075d11e03655523acc2bc85bcdf8cbda2..3bce3b0c9c7a17c98606a88e94a23acc1a67651b 100644
(file)
--- a/
lib/Target/X86/X86FastISel.cpp
+++ b/
lib/Target/X86/X86FastISel.cpp
@@
-462,7
+462,7
@@
bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) {
}
// If all else fails, try to materialize the value in a register.
- if (!AM.GV
&&
getTargetMachine()->symbolicAddressesAreRIPRel()) {
+ if (!AM.GV
|| !
getTargetMachine()->symbolicAddressesAreRIPRel()) {
if (AM.Base.Reg == 0) {
AM.Base.Reg = getRegForValue(V);
return AM.Base.Reg != 0;