AMDGPU: Simplify getAddressSpace calls
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 31 Oct 2019 05:42:45 +0000 (22:42 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Thu, 31 Oct 2019 14:51:38 +0000 (07:51 -0700)
commitbc56166281ae025fcbe701bdb3a02b488bcedc09
tree8e0765c60efea303b64627249f7ff3ae5f766594
parent57ee0435bd47f23f3939f402914c231b4f65ca5e
AMDGPU: Simplify getAddressSpace calls

These can be directly taken from the GlobalValue instead of going
through the type.
llvm/lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp