Don't fold a load if the other operand is a TLS address.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 10 Apr 2009 10:09:34 +0000 (10:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 10 Apr 2009 10:09:34 +0000 (10:09 +0000)
commitdbcfb3080a1e208aef8e4f13a94ce3aa8309643f
treee9158b75ba0a84dc6789a27a89cf8c051de5b8e9
parentcb8c4778d3b86d47475a3ba3dea86dc0c887e5af
Don't fold a load if the other operand is a TLS address.

With this we generate

movl    %gs:0, %eax
leal    i@NTPOFF(%eax), %eax

instead of

movl    $i@NTPOFF, %eax
addl    %gs:0, %eax

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/tls10.ll
test/CodeGen/X86/tls15.ll [new file with mode: 0644]
test/CodeGen/X86/tls2.ll
test/CodeGen/X86/tls6.ll
test/CodeGen/X86/tls8.ll