diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-06-17 22:22:09 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-06-17 22:22:09 +0000 |
commit | 0114bb5aa0a5e5fbaddc7aeadac7a790737e9a0e (patch) | |
tree | 4e390770391c51f2d56bb9b47f0ec67fec7e555e /llvm/lib | |
parent | ae108ffb9a377b589acbe801a744cb1afef61c46 (diff) | |
download | bcm5719-llvm-0114bb5aa0a5e5fbaddc7aeadac7a790737e9a0e.tar.gz bcm5719-llvm-0114bb5aa0a5e5fbaddc7aeadac7a790737e9a0e.zip |
AMDGPU/SI: Simplify code in SITargetLowering::LowerGlobalAddress()
This change were suggested in http://reviews.llvm.org/D21154.
llvm-svn: 273059
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index 3fd002696c9..acc712d6218 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -1426,7 +1426,7 @@ SDValue SITargetLowering::LowerGlobalAddress(AMDGPUMachineFunction *MFI, SDLoc DL(GSD); const GlobalValue *GV = GSD->getGlobal(); - MVT PtrVT = getPointerTy(DAG.getDataLayout(), GSD->getAddressSpace()); + EVT PtrVT = Op.getValueType(); // In order to support pc-relative addressing, the PC_ADD_REL_OFFSET SDNode is // lowered to the following code sequence: |