diff options
author | Ryan Taylor <rtayl@amd.com> | 2018-08-01 12:12:01 +0000 |
---|---|---|
committer | Ryan Taylor <rtayl@amd.com> | 2018-08-01 12:12:01 +0000 |
commit | 894c8fd0e2b8ff8ed9a5d54ef3d0e0167bacb612 (patch) | |
tree | c66b42f3ddf9fdb840161f34c1553bbdfad3da81 /clang/lib/Basic | |
parent | f989cd78e4a814670856c7ada609da4cef4413b0 (diff) | |
download | bcm5719-llvm-894c8fd0e2b8ff8ed9a5d54ef3d0e0167bacb612.tar.gz bcm5719-llvm-894c8fd0e2b8ff8ed9a5d54ef3d0e0167bacb612.zip |
[AMDGPU] Optimize _L image intrinsic to _LZ when lod is zero
Summary:
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
Subscribers: arsenm, mehdi_amini, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, steven_wu, dexonsmith, llvm-commits
Differential Revision: https://reviews.llvm.org/D49483
llvm-svn: 338523
Diffstat (limited to 'clang/lib/Basic')
0 files changed, 0 insertions, 0 deletions