This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix pointer info for lowering load/store for r600 for amdgiz environment
ClosedPublic

Authored by yaxunl on Nov 6 2017, 2:20 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Nov 6 2017, 2:20 PM
arsenm accepted this revision.Nov 6 2017, 3:52 PM

LGTM

This revision is now accepted and ready to land.Nov 6 2017, 3:52 PM
This revision was automatically updated to reflect the committed changes.