[PATCH] D140750: [TargetLowering] Teach BuildUDIV to take advantage of leading zeros in the dividend.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 29 11:50:36 PST 2022


craig.topper updated this revision to Diff 485631.
craig.topper added a comment.

Update exhaustive test. Add an assertion to check division by 1.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140750

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/AArch64/funnel-shift.ll
  llvm/test/CodeGen/AArch64/urem-vector-lkk.ll
  llvm/test/CodeGen/AMDGPU/fshr.ll
  llvm/test/CodeGen/ARM/select-imm.ll
  llvm/test/CodeGen/PowerPC/funnel-shift.ll
  llvm/test/CodeGen/PowerPC/urem-vector-lkk.ll
  llvm/test/CodeGen/RISCV/urem-vector-lkk.ll
  llvm/test/CodeGen/X86/divide-by-constant.ll
  llvm/test/CodeGen/X86/funnel-shift.ll
  llvm/test/CodeGen/X86/pr38217.ll
  llvm/unittests/Support/DivisionByConstantTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140750.485631.patch
Type: text/x-patch
Size: 77043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221229/99da4a82/attachment-0001.bin>


More information about the llvm-commits mailing list