mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 04:32:09 +00:00
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:
parent
68806ff6b6
commit
0243f6a0db
@ -1426,7 +1426,7 @@ SDValue SITargetLowering::LowerGlobalAddress(AMDGPUMachineFunction *MFI,
|
|||||||
|
|
||||||
SDLoc DL(GSD);
|
SDLoc DL(GSD);
|
||||||
const GlobalValue *GV = GSD->getGlobal();
|
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
|
// In order to support pc-relative addressing, the PC_ADD_REL_OFFSET SDNode is
|
||||||
// lowered to the following code sequence:
|
// lowered to the following code sequence:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user