[AMDGPU] Fix pointer info for lowering load/store for r600 for amdgiz environment
authorYaxun Liu <Yaxun.Liu@amd.com>
Fri, 10 Nov 2017 02:03:28 +0000 (02:03 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Fri, 10 Nov 2017 02:03:28 +0000 (02:03 +0000)
commit35845f06a42847f6e08db3f877ca01873650ab92
tree82aff65558eb72524424d0f941a55cb51a52e913
parent920cc2f813c67e31fd3d2b2a92b81f037180243b
[AMDGPU] Fix pointer info for lowering load/store for r600 for amdgiz environment

r600 uses dummy pointer info for lowering load/store. Since dummy pointer info
assumes address space 0, this causes isel failure when temporary load/store SDNodes
are generated for amdgiz environment.

Since the offest is not constant, FixedStack pseudo source value cannot be used
to create the pointer info. This patch creates pointer info using llvm undef value.
At least this provides correct address space so that isel can be done correctly.

Differential Revision: https://reviews.llvm.org/D39698

llvm-svn: 317862
llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
llvm/test/CodeGen/AMDGPU/combine_vloads.ll
llvm/test/CodeGen/AMDGPU/load-local-i8.ll
llvm/test/CodeGen/AMDGPU/min.ll
llvm/test/CodeGen/AMDGPU/setcc.ll
llvm/test/CodeGen/AMDGPU/sext-in-reg.ll
llvm/test/CodeGen/AMDGPU/shl.ll
llvm/test/CodeGen/AMDGPU/sra.ll
llvm/test/CodeGen/AMDGPU/store-global.ll
llvm/test/CodeGen/AMDGPU/store-local.ll
llvm/test/CodeGen/AMDGPU/trunc-vector-store-assertion-failure.ll