]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Handle 16-bit SALU min/max
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 18:33:37 +0000 (18:33 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 18:33:37 +0000 (18:33 +0000)
commit8658877c1fa27e3d9d23ae0fcdf7728473a51330
treefcab3e20824cb80da850131f7474e24fa9024052
parentf55969cbd1f8a9d8f88d0259852250cd5e36be7d
AMDGPU/GlobalISel: Handle 16-bit SALU min/max

This needs to be extended to s32, and expanded into cmp+select.  This
is relying on the fact that widenScalar happens to leave the
instruction in place, but this isn't a guaranteed property of
LegalizerHelper.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364831 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-smax.mir
test/CodeGen/AMDGPU/GlobalISel/regbankselect-smin.mir
test/CodeGen/AMDGPU/GlobalISel/regbankselect-umax.mir
test/CodeGen/AMDGPU/GlobalISel/regbankselect-umin.mir