[PATCH] D103083: AMDGPU/GlobalISel: Optimize divrem lowering

Christudasan Devadasan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 05:09:36 PDT 2021


cdevadas created this revision.
cdevadas added reviewers: foad, arsenm.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
cdevadas requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Build the common instructions once and
reuse them for both div and rem.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103083

Files:
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sdiv.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-srem.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-udiv.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-urem.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i64.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/udivrem.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103083.347641.patch
Type: text/x-patch
Size: 48181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/53052dd5/attachment.bin>


More information about the llvm-commits mailing list