aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorMariusz Sikora <mariusz.sikora@amd.com>2022-04-25 12:57:27 +0100
committerJay Foad <jay.foad@amd.com>2022-04-25 13:05:52 +0100
commitd1762fc454c0d7ee0bcffe87e798f67b6c43c1d2 (patch)
treeea3626a831bb68b8ec4dfd10b0e961afd2ff0571 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parentc712bf3ce41f4bd553e14d36f29a87c3898ef5b0 (diff)
downloadllvm-d1762fc454c0d7ee0bcffe87e798f67b6c43c1d2.zip
llvm-d1762fc454c0d7ee0bcffe87e798f67b6c43c1d2.tar.gz
llvm-d1762fc454c0d7ee0bcffe87e798f67b6c43c1d2.tar.bz2
[AMDGPU] Use d16 flag for image.sample instructions
Image.sample instruction can be forced to return half type instead of float when d16 flag is enabled. This patch adds new pattern in InstCombine to detect if output of image.sample is used later only by fptrunc which converts the type from float to half. If pattern is detected then fptrunc and image.sample are combined to single image.sample which is returning half type. Later in Lowering part d16 flag is added to image sample intrinsic. Differential Revision: https://reviews.llvm.org/D124232
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions