Partially revert D61491 "AMDGPU: Be explicit about whether the high-word in SI_PC_ADD...
authorJay Foad <jay.foad@gmail.com>
Mon, 2 Sep 2019 14:40:57 +0000 (14:40 +0000)
committerJay Foad <jay.foad@gmail.com>
Mon, 2 Sep 2019 14:40:57 +0000 (14:40 +0000)
commit6e18266aa4dd78953557b8614cb9ff260bad7c65
tree41f6b1039acd58a35d0308405f4a67f7df7d9c6d
parent4aa90ea58efbd09de834b2939fee91a47059200d
Partially revert D61491 "AMDGPU: Be explicit about whether the high-word in SI_PC_ADD_REL_OFFSET is 0"

Summary:
D61491 caused us to use relocs when they're not strictly necessary, to
refer to symbols in the text section. This is a pessimization and it's a
problem for some loaders that don't support relocs yet.

Reviewers: nhaehnle, arsenm, tpr

Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, t-tye, hiraditya, llvm-commits

Tags: #llvm

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

llvm-svn: 370667
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/test/CodeGen/AMDGPU/global-constant.ll
llvm/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll
llvm/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll