[PATCH] D83382: [AMDGPU] Fix and simplify AMDGPUTargetLowering::LowerUDIVREM

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 04:27:07 PDT 2020


foad created this revision.
foad added reviewers: arsenm, rampitec, b-sumner.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

Use the algorithm from AMDGPUCodeGenPrepare::expandDivRem32.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83382

Files:
  llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
  llvm/lib/Target/AMDGPU/CaymanInstructions.td
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll
  llvm/test/CodeGen/AMDGPU/bypass-div.ll
  llvm/test/CodeGen/AMDGPU/sdiv.ll
  llvm/test/CodeGen/AMDGPU/udivrem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83382.276371.patch
Type: text/x-patch
Size: 65713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200708/33ebdc25/attachment.bin>


More information about the llvm-commits mailing list