]> granicus.if.org Git - llvm/commit
[AMDGPU] Extend the SI Load/Store optimizer
authorPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 16 Oct 2019 10:17:02 +0000 (10:17 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Wed, 16 Oct 2019 10:17:02 +0000 (10:17 +0000)
commita0aca5a08b7e6a61d284a4c325752dd763036eb3
tree3bc4632f000d138e86f09516cc8ffe39931212d0
parentd0b5e5e4df5c67d3d17c7fd44483ece17edbcdcb
[AMDGPU] Extend the SI Load/Store optimizer

Summary:
Extend the SI Load/Store optimizer to merge MIMG load instructions. Handle
different flavours of image_load and image_sample instructions.

When the instructions of the same subclass differ only in dmask, merge
them and update dmask accordingly.

Reviewers: nhaehnle

Reviewed By: nhaehnle

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374984 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
test/CodeGen/AMDGPU/merge-image-load.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/merge-image-sample.mir [new file with mode: 0644]