[PATCH] D39698: [AMDGPU] Fix pointer info for lowering load/store for r600 for amdgiz environment

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 14:20:13 PST 2017


yaxunl created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, nhaehnle, wdng, kzhuravl.

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.


https://reviews.llvm.org/D39698

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39698.121784.patch
Type: text/x-patch
Size: 13364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171106/c47ada6f/attachment.bin>


More information about the llvm-commits mailing list