[llvm] r273059 - AMDGPU/SI: Simplify code in SITargetLowering::LowerGlobalAddress()
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 15:22:09 PDT 2016
Author: tstellar
Date: Fri Jun 17 17:22:09 2016
New Revision: 273059
URL: http://llvm.org/viewvc/llvm-project?rev=273059&view=rev
Log:
AMDGPU/SI: Simplify code in SITargetLowering::LowerGlobalAddress()
This change were suggested in http://reviews.llvm.org/D21154.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=273059&r1=273058&r2=273059&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Fri Jun 17 17:22:09 2016
@@ -1426,7 +1426,7 @@ SDValue SITargetLowering::LowerGlobalAdd
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:
More information about the llvm-commits
mailing list