summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-12-09 00:27:58 +0000
committerEric Christopher <echristo@apple.com>2010-12-09 00:27:58 +0000
commit8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a (patch)
treeae33680a36f9d8a28c600c13cdc1b539c5b8d7b7 /lib
parentfb20d890756b75d6ccfa7ab17f170a877d425dc6 (diff)
downloadllvm-8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a.tar.gz
llvm-8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a.tar.bz2
llvm-8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a.tar.xz
Remove extraneous copy from DAG conversion for darwin tls. This was
popping up at O0 when it wasn't folded and the fast allocator would complain. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 6e1420cb75..68fb525599 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -6200,11 +6200,10 @@ X86TargetLowering::LowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const {
// TLSCALL will be codegen'ed as call. Inform MFI that function has calls.
MachineFrameInfo *MFI = DAG.getMachineFunction().getFrameInfo();
MFI->setAdjustsStack(true);
-
+
// And our return value (tls address) is in the standard call return value
// location.
- unsigned Reg = Subtarget->is64Bit() ? X86::RAX : X86::EAX;
- return DAG.getCopyFromReg(Chain, DL, Reg, getPointerTy());
+ return Chain;
}
assert(false &&