[PATCH] D49483: [AMDGPU] Optimize _L image intrinsic to _LZ when lod is zero
Ryan Taylor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 18 06:59:56 PDT 2018
rtaylor created this revision.
Herald added subscribers: llvm-commits, dexonsmith, steven_wu, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl, mehdi_amini, arsenm.
Add _L to _LZ image intrinsic table mapping to table gen.
In ISelLowering check if image intrinsic has lod and if it's equal
to zero, if so remove lod and change opcode to equivalent mapped _LZ.
Change-Id: Ie24cd7e788e2195d846c7bd256151178cbb9ec71
Repository:
rL LLVM
https://reviews.llvm.org/D49483
Files:
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/llvm.amdgcn.image.sample.ltolz.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49483.156063.patch
Type: text/x-patch
Size: 9661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180718/6cd58d88/attachment.bin>
More information about the llvm-commits
mailing list