summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-09-10 02:23:39 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-09-10 02:23:39 +0000
commitd77fcc2a926a01a72c168fd8abc87023d58dbb4e (patch)
treea8b5a5414bc2ed33ec217f04fd0d3cfc5fd2a869 /llvm/lib/Target
parentb998674610c6b7c975ff095e91351c64d1619164 (diff)
downloadbcm5719-llvm-d77fcc2a926a01a72c168fd8abc87023d58dbb4e.tar.gz
bcm5719-llvm-d77fcc2a926a01a72c168fd8abc87023d58dbb4e.zip
AMDGPU: Use GOT PSV since it has an address space now
llvm-svn: 341768
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index f62db083e4d..c9f0330b71d 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -4447,8 +4447,8 @@ SDValue SITargetLowering::LowerGlobalAddress(AMDGPUMachineFunction *MFI,
PointerType *PtrTy = PointerType::get(Ty, AMDGPUAS::CONSTANT_ADDRESS);
const DataLayout &DataLayout = DAG.getDataLayout();
unsigned Align = DataLayout.getABITypeAlignment(PtrTy);
- // FIXME: Use a PseudoSourceValue once those can be assigned an address space.
- MachinePointerInfo PtrInfo(UndefValue::get(PtrTy));
+ MachinePointerInfo PtrInfo
+ = MachinePointerInfo::getGOT(DAG.getMachineFunction());
return DAG.getLoad(PtrVT, DL, DAG.getEntryNode(), GOTAddr, PtrInfo, Align,
MachineMemOperand::MODereferenceable |
OpenPOWER on IntegriCloud