[X86] Don't try to generate direct calls to TLS globals
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 8 Jan 2015 11:50:58 +0000 (11:50 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 8 Jan 2015 11:50:58 +0000 (11:50 +0000)
commit0858c28ca81e75f92d1ecc64d890b1e3815d31e7
treedbdb705ed37498f84bb9ccd582a83250c871368b
parent1cea74978028ded2d980786d232288651db3ce97
[X86] Don't try to generate direct calls to TLS globals

The call lowering assumes that if the callee is a global, we want to emit a direct call.
This is correct for regular globals, but not for TLS ones.

Differential Revision: http://reviews.llvm.org/D6862

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225438 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/pr22103.ll [new file with mode: 0644]