[PATCH] D102391: [AMDGPU][GlobalISel] Legalize G_ABS

Mirko Brkusanin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 08:52:33 PDT 2021


mbrkusanin updated this revision to Diff 348543.
mbrkusanin added a comment.

- Added legalizeABS() as a custom lowering to be used by RegBankSelect.

I don't see a way to add multiple paths to already existing lower() for G_ABS and control which one to use. Not sure if this is the cleaner way of doing it that you had in mind.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102391/new/

https://reviews.llvm.org/D102391

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/lib/Target/AMDGPU/SOPInstructions.td
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.abs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102391.348543.patch
Type: text/x-patch
Size: 11340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210528/095570de/attachment.bin>


More information about the llvm-commits mailing list