summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-22 00:11:31 +0000
committerChris Lattner <sabre@nondot.org>2010-09-22 00:11:31 +0000
commit07827ba97889e1fe67ad14f188ed7903e875f39b (patch)
tree2beefcf33ea13d4fdf168b11d0f8da5f32411b6d
parentda4f6b5151dd6b159c10fc4e06cb8aa9f4e03da8 (diff)
downloadbcm5719-llvm-07827ba97889e1fe67ad14f188ed7903e875f39b.tar.gz
bcm5719-llvm-07827ba97889e1fe67ad14f188ed7903e875f39b.zip
revert r114386 now that address modes work correctly, we get a nice
call through gs-relative memory now. llvm-svn: 114510
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp4
-rw-r--r--llvm/test/CodeGen/X86/movgs.ll8
2 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index de1f014d83e..5c133f12e44 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -403,10 +403,6 @@ static bool isCalleeLoad(SDValue Callee, SDValue &Chain, bool HasCallSeq) {
LD->getExtensionType() != ISD::NON_EXTLOAD)
return false;
- // FIXME: Calls can't fold loads through segment registers yet.
- if (LD->getPointerInfo().getAddrSpace() > 255)
- return false;
-
// Now let's find the callseq_start.
while (HasCallSeq && Chain.getOpcode() != ISD::CALLSEQ_START) {
if (!Chain.hasOneUse())
diff --git a/llvm/test/CodeGen/X86/movgs.ll b/llvm/test/CodeGen/X86/movgs.ll
index ed201f36e92..3a249470d46 100644
--- a/llvm/test/CodeGen/X86/movgs.ll
+++ b/llvm/test/CodeGen/X86/movgs.ll
@@ -26,10 +26,8 @@ entry:
; rdar://8453210
; X32: test2:
-; X32: movl %gs:(%eax), %eax
-; X32: movl %eax, (%esp)
-; X32: call *%eax
+; X32: movl 16(%esp), %eax
+; X32: call *%gs:(%eax)
; X64: test2:
-; X64: movq %gs:(%rdi), %rax
-; X64: callq *%rax
+; X64: callq *%gs:(%rdi)
OpenPOWER on IntegriCloud