[PATCH] AMDGPU/SI: select S_ABS_I32 when possible (v2)
Marek Olšák via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 07:38:05 PST 2015
Ping.
On Thu, Oct 29, 2015 at 4:44 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> v2: added more tests, moved the SALU->VALU conversion to a separate function
>
> It looks like it's not possible to get subregisters in the S_ABS lowering
> code, and I don't feel like guessing without testing what the correct code
> would look like.
> ---
> lib/Target/AMDGPU/SIInstrInfo.cpp | 29 ++++++
> lib/Target/AMDGPU/SIInstrInfo.h | 3 +
> lib/Target/AMDGPU/SIInstructions.td | 5 ++
> test/CodeGen/AMDGPU/llvm.AMDGPU.abs.ll | 4 +-
> test/CodeGen/AMDGPU/sminmax.ll | 156 +++++++++++++++++++++++++++++++++
> 5 files changed, 194 insertions(+), 3 deletions(-)
> create mode 100644 test/CodeGen/AMDGPU/sminmax.ll
More information about the llvm-commits
mailing list