SILoadStoreOptimizer: add support for GFX10 image instructions
authorJay Foad <jay.foad@amd.com>
Thu, 11 Jun 2020 16:42:30 +0000 (17:42 +0100)
committerJay Foad <jay.foad@amd.com>
Wed, 8 Jul 2020 18:15:46 +0000 (19:15 +0100)
commit47788b97a9eb1215d0ac01826f51fbe286f56c0b
tree0a3fe88aeec3c633998a64ddf7d6b7a284b05659
parenta8816ebee01c1f923d928617bb4e55dcc1d7d6da
SILoadStoreOptimizer: add support for GFX10 image instructions

GFX10 image instructions use one or more address operands starting at
vaddr0, instead of a single vaddr operand, to allow for NSA forms.

Differential Revision: https://reviews.llvm.org/D81675
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
llvm/test/CodeGen/AMDGPU/merge-image-load-gfx10.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/merge-image-sample-gfx10.mir [new file with mode: 0644]