[PATCH] D155865: [AMDGPU][GlobalIsel] Fix legalizer for G_ABS for odd sized vectors

Acim Maravic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 10:20:44 PDT 2023


Acim-Maravic created this revision.
Acim-Maravic added reviewers: foad, arsenm, Petar.Avramovic, mbrkusanin.
Acim-Maravic added a project: LLVM.
Herald added subscribers: ctetreau, StephenFan, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
Acim-Maravic requested review of this revision.
Herald added a subscriber: wdng.

moreElementsVector does not support G_ABS. There is no need to increase
the size of odd sized vectors if they are going to be scalarized by a
different rule.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155865

Files:
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-abs.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-smax.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-smin.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-umax.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-umin.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155865.542578.patch
Type: text/x-patch
Size: 31752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230720/28ee99b9/attachment.bin>


More information about the llvm-commits mailing list