OSDN Git Service

GOTPCREL references must always use RIP.
authorSriraman Tallam <tmsriram@google.com>
Tue, 10 Apr 2018 22:50:05 +0000 (22:50 +0000)
committerSriraman Tallam <tmsriram@google.com>
Tue, 10 Apr 2018 22:50:05 +0000 (22:50 +0000)
commit032a6bb59f9cd8ea8a8cfd52d915ab03e407e5c3
treea305bcc690fecb4fb90a6f9dd77680b28c6559a2
parent0a5f9fa9c25860442cb7d784240716ac5f3930ba
GOTPCREL references must always use RIP.

With -fno-plt, global value references can use GOTPCREL and RIP must be used.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329765 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/no-plt.ll