diff options
author | Eric Christopher <echristo@apple.com> | 2010-12-09 00:27:58 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-12-09 00:27:58 +0000 |
commit | 8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a (patch) | |
tree | ae33680a36f9d8a28c600c13cdc1b539c5b8d7b7 /lib/Target/X86/X86ISelLowering.cpp | |
parent | fb20d890756b75d6ccfa7ab17f170a877d425dc6 (diff) | |
download | external_llvm-8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a.zip external_llvm-8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a.tar.gz external_llvm-8bce7cc3bfa7d5b47ca0b05f7c663068d1da592a.tar.bz2 |
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/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 6e1420c..68fb525 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 && |