[PATCH] D64005: AMDGPU: GlobalISel: Handle 16-bit SALU min/max
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 05:57:53 PDT 2019
arsenm created this revision.
arsenm added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, t-tye, tpr, dstuttard, kristof.beyls, rovka, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
arsenm added a parent revision: D63969: GlobalISel: Try to propagate the register bank in LegalizerHelper.
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.
https://reviews.llvm.org/D64005
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64005.207283.patch
Type: text/x-patch
Size: 31957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190701/d3b73b6f/attachment.bin>
More information about the llvm-commits
mailing list