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:
28b5143
)
Revert an unintended change.
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 5 Dec 2006 22:03:40 +0000
(22:03 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 5 Dec 2006 22:03:40 +0000
(22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32239
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelDAGToDAG.cpp
b/lib/Target/X86/X86ISelDAGToDAG.cpp
index d1b41ef08338f54d7189a5c2a7c088251aee2380..6d0f54933da8fd5efa7ecea7f95d44f973747c69 100644
(file)
--- a/
lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/
lib/Target/X86/X86ISelDAGToDAG.cpp
@@
-907,7
+907,7
@@
bool X86DAGToDAGISel::SelectLEAAddr(SDOperand Op, SDOperand N,
if (AM.GV || AM.CP || AM.ES || AM.JT != -1) {
// For X86-64, we should always use lea to materialize RIP relative
// addresses.
- if (Subtarget->is64Bit()
&& TM.getRelocationModel() != Reloc::Static
)
+ if (Subtarget->is64Bit())
Complexity = 4;
else
Complexity += 2;