[PowerPC] Allow using initial-exec TLS with PIC
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 24 Apr 2019 22:12:22 +0000 (22:12 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 24 Apr 2019 22:12:22 +0000 (22:12 +0000)
commit8372b467f18da0ff92ff59ba878365e8f4790212
treeb74895bb57d09e2e6ac0073d9916915b6b6aac98
parent2f496763215848f625becc540c097a37502e31fe
[PowerPC] Allow using initial-exec TLS with PIC

Using initial-exec TLS variables is a reasonable performance
optimisation for system libraries. Use the correct PIC mechanism to get
hold of the GOT to avoid text relocations.

Differential Revision: https://reviews.llvm.org/D61026

llvm-svn: 359146
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/test/CodeGen/PowerPC/tls.ll