AMDGPU/SI: Simplify code in SITargetLowering::LowerGlobalAddress()

This change were suggested in http://reviews.llvm.org/D21154.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273059 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tom Stellard 2016-06-17 22:22:09 +00:00
parent 68806ff6b6
commit 0243f6a0db

View File

@ -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: