]> granicus.if.org Git - llvm/commit
[AMDGPU] Optimize image_[load|store]_mip
authorPiotr Sobczak <piotr.sobczak@amd.com>
Mon, 10 Jun 2019 15:58:51 +0000 (15:58 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Mon, 10 Jun 2019 15:58:51 +0000 (15:58 +0000)
commit944600b17a610ea8dce1b881f0e143118e911eac
tree1e98c1e907ec8bbae61e19be6a2931e9ff10c4dc
parent692343df5af8abfbeead1c769ae7799778845c1c
[AMDGPU] Optimize image_[load|store]_mip

Summary:
Replace image_load_mip/image_store_mip
with image_load/image_store if lod is 0.

Reviewers: arsenm, nhaehnle

Reviewed By: arsenm

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

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362957 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/MIMGInstructions.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
test/CodeGen/AMDGPU/image_ls_mipmap_zero.ll [new file with mode: 0644]